- Kotlin Standard Library Cookbook
- Samuel Urbanowicz
- 65字
- 2021-07-23 19:05:57
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.
推薦閱讀
- 機(jī)器學(xué)習(xí)系統(tǒng):設(shè)計(jì)和實(shí)現(xiàn)
- 程序員數(shù)學(xué):用Python學(xué)透線性代數(shù)和微積分
- Mastering Scientific Computing with R
- PhoneGap Mobile Application Development Cookbook
- Hands-On Reinforcement Learning with Python
- Haskell Data Analysis Cookbook
- Instant Apache Camel Messaging System
- C語(yǔ)言從入門(mén)到精通
- Yii2 By Example
- Qt 5.12實(shí)戰(zhàn)
- HTML5+CSS+JavaScript深入學(xué)習(xí)實(shí)錄
- TensorFlow程序設(shè)計(jì)
- C語(yǔ)言程序設(shè)計(jì):現(xiàn)代方法(第2版)
- Rust Quick Start Guide
- 競(jìng)技游戲設(shè)計(jì)實(shí)戰(zhàn)指南:MOBA+RTS+TCG+FPS