- 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.
推薦閱讀
- Clojure Programming Cookbook
- 數(shù)據(jù)結構和算法基礎(Java語言實現(xiàn))
- AWS Serverless架構:使用AWS從傳統(tǒng)部署方式向Serverless架構遷移
- Python爬蟲開發(fā):從入門到實戰(zhàn)(微課版)
- 數(shù)據(jù)結構(Python語言描述)(第2版)
- Learning ArcGIS Pro
- 編譯系統(tǒng)透視:圖解編譯原理
- 嚴密系統(tǒng)設計:方法、趨勢與挑戰(zhàn)
- JavaScript動態(tài)網(wǎng)頁開發(fā)詳解
- Android 應用案例開發(fā)大全(第3版)
- Keras深度學習實戰(zhàn)
- Linux C編程:一站式學習
- Angular應用程序開發(fā)指南
- 動手打造深度學習框架
- ABAQUS6.14中文版有限元分析與實例詳解