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

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
主站蜘蛛池模板: 大城县| 大庆市| 永春县| 锦州市| 新田县| 辽源市| 文山县| 怀宁县| 临泽县| 将乐县| 焦作市| 民县| 砀山县| 福鼎市| 浦江县| 砀山县| 清苑县| 大名县| 黄浦区| 迭部县| 新兴县| 玛多县| 德州市| 合江县| 涞水县| 溧阳市| 望城县| 许昌县| 塘沽区| 犍为县| 盐山县| 三门峡市| 三河市| 嘉黎县| 兴隆县| 宣汉县| 霍林郭勒市| 方山县| 惠水县| 天峻县| 左权县|