Using higher-order functions and taking advantage of the standard library can help you begin to write more functional code with Kotlin. However, that's really only the first step toward writing pure functional code. In this section, we'll take a look at the Arrow library and see how it enables us to write more purely functional Kotlin code.
Functional programming with Arrow
What is Arrow?
Arrow is an open source library for typed, functional programming in Kotlin. It aims to provide common syntax and functionality to achieve pure functional programming with Kotlin. This includes abstractions, interfaces, and classes including the following:
- Functor
- Applicative
- Monad
- Option
- Try
- Either
- Eval
For additional information...