- Perl 6 Deep Dive
- Andrew Shitov
- 125字
- 2021-07-03 00:05:49
Methods of the Int type
Data types in Perl 6 are represented by a number of built-in classes, which means that methods can be called on the objects of those classes. Object-oriented features of the language are described in Chapter 8, Object-Oriented Programming, but, for now, it is not possible to avoid some elements of it.
In this section, only the most interesting methods will be listed. The full list of possibilities can be obtained on the documentation page (https://docs.perl6.org/type/Int).
The most fundamental thing that is important now is that methods are called using the dot on either the value itself or on the variable containing the value of the corresponding type. You will see the way to call methods immediately in the next section.
推薦閱讀
- Spring Boot 2實戰(zhàn)之旅
- Vue.js 3.x快速入門
- Web應用系統(tǒng)開發(fā)實踐(C#)
- SpringMVC+MyBatis快速開發(fā)與項目實戰(zhàn)
- 架構不再難(全5冊)
- 自己動手寫Java虛擬機
- Mastering Entity Framework
- OpenCV for Secret Agents
- Python計算機視覺編程
- Data Analysis with Stata
- Big Data Analytics
- Mastering Predictive Analytics with Python
- CoffeeScript Application Development Cookbook
- Scala for Machine Learning(Second Edition)
- Vue.js 3應用開發(fā)與核心源碼解析