Kotlin has a lot of features that can be used for advanced programming. This section will explain some of those.
Advanced programming with Kotlin
Functions
Unlike in Java, where classes are first-class citizens, functions are first class citizens in Kotlin. This means that a function can exist without being inside a class. This is quite powerful and there are a lot of advanced ways functions can be used to achieve different functionalities.
Infix notation in functions
Infix notations can be used to define functions that can be used, such as 1 + 2, 2 - 3, true &&...