- 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.
推薦閱讀
- HTML5+CSS3+JavaScript從入門到精通:上冊(微課精編版·第2版)
- Node.js+Webpack開發實戰
- OpenShift開發指南(原書第2版)
- MongoDB for Java Developers
- Flask Web開發入門、進階與實戰
- 人人都是網站分析師:從分析師的視角理解網站和解讀數據
- 移動界面(Web/App)Photoshop UI設計十全大補
- Android開發三劍客:UML、模式與測試
- Arduino計算機視覺編程
- 深度探索Go語言:對象模型與runtime的原理特性及應用
- Java 從入門到項目實踐(超值版)
- Mastering VMware Horizon 7(Second Edition)
- Python機器學習
- Spring Boot 2+Thymeleaf企業應用實戰
- Node.js Web Development