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

Functions in Kotlin

In the previous chapters, we introduced the basics of Kotlin and how to write procedural and object-oriented code. The emphasis in this chapter will be on functions, how to take the first steps into functional programming, and the features that Kotlin supports that makes programming with functions easier.

In this chapter, we will cover the following topics:

  • Functions and function literals
  • Extension functions
  • Named parameters and default parameters
  • Operator overloading
  • Recursion and tail recursion
主站蜘蛛池模板: 常德市| 聂荣县| 旬阳县| 瑞昌市| 恩平市| 临沧市| 嘉峪关市| 喀什市| 多伦县| 龙岩市| 运城市| 永靖县| 梁平县| 恩施市| 玉环县| 交口县| 榆社县| 新建县| 新宾| 尼木县| 民县| 长春市| 梁河县| 杭锦后旗| 阳东县| 黄石市| 阿克| 嘉禾县| 长寿区| 泰来县| 新乡县| 高台县| 铜山县| 南丰县| 宁津县| 绥宁县| 新田县| 南岸区| 天等县| 昂仁县| 怀仁县|