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

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.

主站蜘蛛池模板: 神池县| 句容市| 库车县| 广德县| 沐川县| 石河子市| 商丘市| 桐庐县| 屏南县| 镇雄县| 黄大仙区| 宝清县| 朝阳市| 即墨市| 西乌珠穆沁旗| 鸡东县| 绥芬河市| 社会| 南川市| 沭阳县| 乐至县| 崇阳县| 普兰店市| 和田县| 张家港市| 江川县| 郧西县| 新营市| 涟水县| 缙云县| 大方县| 万全县| 咸丰县| 岳池县| SHOW| 确山县| 红河县| 息烽县| 乐东| 缙云县| 乌兰浩特市|