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

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
主站蜘蛛池模板: 洛隆县| 太湖县| 巩义市| 巢湖市| 故城县| 辽宁省| 华阴市| 土默特右旗| 邹平县| 昌平区| 克拉玛依市| 南陵县| 边坝县| 惠州市| 义马市| 休宁县| 通海县| 印江| 平武县| 牙克石市| 大荔县| 漠河县| 锦州市| 漳平市| 巩义市| 西宁市| 梅州市| 葵青区| 永兴县| 常德市| 隆德县| 奎屯市| 靖江市| 甘洛县| 岑溪市| 乌拉特后旗| 蒙城县| 汤原县| 微博| 古丈县| 泰安市|