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

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.

主站蜘蛛池模板: 永德县| 台山市| 伊宁市| 邻水| 广平县| 莱州市| 宜章县| 云阳县| 铜梁县| 普兰县| 和平县| 太原市| 鄂伦春自治旗| 正镶白旗| 嘉荫县| 和静县| 安溪县| 湛江市| 仪陇县| 岳阳县| 安图县| 讷河市| 沁阳市| 本溪| 阳城县| 承德市| 大埔区| 简阳市| 西贡区| 子洲县| 城市| 海兴县| 海丰县| 巴楚县| 崇义县| 桦甸市| 怀安县| 苗栗市| 金川县| 裕民县| 历史|