官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 盐池县| 米林县| 甘德县| 上林县| 塔河县| 肃宁县| 忻城县| 卢氏县| 翁牛特旗| 鄂尔多斯市| 康马县| 禹州市| 汾西县| 九龙坡区| 盖州市| 万宁市| 乌鲁木齐市| 庐江县| 蒲江县| 湘西| 湖南省| 永和县| 吉林市| 瑞昌市| 宣城市| 合肥市| 郴州市| 平利县| 密云县| 汤原县| 磐安县| 五莲县| 嘉善县| 乌拉特中旗| 平山县| 华池县| 淳化县| 江川县| 博白县| 邵武市| 玉林市|