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

Infix notations for functions

To bring our code closer to the natural language, Kotlin provides infix notations for the functions containing a single parameter. This way, we can invoke the function without using brackets. In this recipe, we are going to learn how to design an infix extension function for the String type, named concat(), which is responsible for the concatenation of two string values.

主站蜘蛛池模板: 凤山县| 故城县| 九龙县| 惠州市| 循化| 突泉县| 景德镇市| 城固县| 筠连县| 镇雄县| 芜湖县| 阜阳市| 淄博市| 伽师县| 哈密市| 同仁县| 江安县| 德清县| 柳河县| 佛坪县| 修水县| 侯马市| 桂平市| 陈巴尔虎旗| 阿拉善盟| 江山市| 长垣县| 临夏县| 赣榆县| 桐梓县| 常州市| 亳州市| 汕头市| 巴青县| 南宫市| 临颍县| 灵宝市| 昌乐县| 株洲县| 合山市| 昌江|