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

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.

主站蜘蛛池模板: 崇仁县| 江孜县| 福泉市| 聂拉木县| 四平市| 平罗县| 庄浪县| 温宿县| 深水埗区| 洛隆县| 玉环县| 关岭| 闽清县| 建昌县| 广昌县| 加查县| 中西区| 海原县| 定陶县| 玉屏| 泗洪县| 汝阳县| 扎囊县| 子洲县| 密云县| 嵊泗县| 闽清县| 东乌珠穆沁旗| 观塘区| 洛南县| 通海县| 河西区| 威海市| 甘洛县| 常宁市| 上虞市| 滕州市| 襄樊市| 仁怀市| 华阴市| 铜川市|