Kotlin is one of the most popular programming languages in recent years. Besides the recommended by Google for building Android apps, it also supports multi-paradigm, such as object-oriented programming and functional programming. Developers can choose suitable programming paradigms to apply different requirements.
Kotlin integrates FP perfectly, learning FP from Kotlin is not hard, in other words, you’ve already learned FP, but you don’t really know.
This proposal starts from OOP and follows my mindset to re-think the same problem from FP. I will show you what it is FP? Three types of functions of FP: transform, filter, and combine. And which function can be used to implement FP in Kotlin?
Finally, introduce the 3rd party library — Arrow — which provides more, solid and classic FP.
About Andy Lu
An Android developer, familiar with Kotlin and Flutter.
Also a volunteer for the Kotlin study group.