- Learn Kotlin Programming(Second Edition)
- Stephen Samuel Stefan Bocutiu
- 78字
- 2021-06-24 14:13:35
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
推薦閱讀
- 極簡算法史:從數(shù)學(xué)到機(jī)器的故事
- Java Web開發(fā)技術(shù)教程
- Apache Mahout Clustering Designs
- Haskell Data Analysis Cookbook
- Learning R for Geospatial Analysis
- Terraform:多云、混合云環(huán)境下實(shí)現(xiàn)基礎(chǔ)設(shè)施即代碼(第2版)
- 區(qū)塊鏈技術(shù)進(jìn)階與實(shí)戰(zhàn)(第2版)
- Python Interviews
- Deep Learning with R Cookbook
- The Statistics and Calculus with Python Workshop
- JavaScript Concurrency
- 零基礎(chǔ)C語言學(xué)習(xí)筆記
- 讀故事學(xué)編程:Python王國歷險(xiǎn)記
- Practical Responsive Typography
- C++游戲設(shè)計(jì)案例教程