Getting started with Arrow
First, let’s open build.gradle.kts
and add a new dependency:
{
...
implementation("io.arrow-kt:arrow-core:1.2.3")
}
This will add the required library to our project. We’ll use version 1.2.3 for the examples. If, by the time you read this chapter, a new library version has been released, IntelliJ IDEA will highlight the version for you and suggest you update it.
Once ready, we can begin exploring the various aspects of the Arrow library. We’ll start with typed errors, which will provide us with an alternative to Kotlin exceptions.