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

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
主站蜘蛛池模板: 泊头市| 青海省| 顺昌县| 巍山| 栾城县| 中江县| 阳东县| 界首市| 宁夏| 柯坪县| 阿尔山市| 双江| 文化| 察雅县| 偃师市| 阳曲县| 克什克腾旗| 宣武区| 牟定县| 清远市| 忻州市| 四子王旗| 大关县| 无锡市| 东港市| 武平县| 双城市| 富平县| 石楼县| 文昌市| 皋兰县| 汕尾市| 新源县| 宾阳县| 理塘县| 如皋市| 库尔勒市| 稷山县| 化州市| 农安县| 榆社县|