2 Functional programming in Kotlin: An overview
In this chapter
- Declaring and initializing fields and variables
- Kotlin’s classes and interfaces
- Kotlin’s two types of collections
- Functions (and control structures)
- Handling nulls
In this chapter, I provide a quick overview of the Kotlin language. I assume that you know a bit (at least) of Java, so I stress the differences between the two languages. The intent is not to teach you Kotlin. You’ll find other books for this. If you need an in-depth coverage of Kotlin, I recommend you read Dmitry Jemerov and Svetlana Isakova’s Kotlin in Action (Manning, 2017).
This chapter gives you a first glimpse of what to expect from Kotlin. Don’t try to remember everything. Look at some of the astounding features ...
Get The Joy of Kotlin now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.