Maven Central Latest snapshot Kotlin version License StackOverflow Twitter

Arrow Core. Functional companion to Kotlin’s Standard Library

Arrow Core includes types such as Either, Validated and many extensions to Iterable that can be used when implementing error handling patterns.

Core also includes the base continuation effects system, which includes patterns to remove callbacks and enables controlled effects in direct syntax. Some applications of the effect system reduce boilerplate and enable direct syntax including monad comprehensions and computation expressions.

Setup

Configure Arrow for your project

Jdk

Make sure to have the latest version of JDK 1.8 installed.

Android

Arrow supports Android starting on API 21 and up.

Basic Setup

In your project’s root build.gradle.kts, append this repository to your list:

allprojects {
    repositories {
        mavenCentral()
    }
}

Add the dependencies into the project’s build.gradle.kts:

dependencies {
    implementation("io.arrow-kt:arrow-core:1.1.2")
}

BOM file

To avoid specifying the Arrow version for every dependency, a BOM file is available:

dependencies {
    implementation(platform("io.arrow-kt:arrow-stack:1.1.2"))

    implementation("io.arrow-kt:arrow-core")
    ...
}

Next development version

If you want to try the latest features, replace 1.1.2 with on of the latest alpha, beta or rc publications.

Basic Setup

In your project’s root build.gradle, append this repository to your list:

allprojects {
    repositories {
        mavenCentral()
    }
}

Add the dependencies into the project’s build.gradle:

Arrow Core
def arrow_version = "1.1.2"
dependencies {
    implementation "io.arrow-kt:arrow-core:$arrow_version"
}

BOM file

To avoid specifying the Arrow version for every dependency, a BOM file is available:

def arrow_version = "1.1.2"
dependencies {
    implementation platform("io.arrow-kt:arrow-stack:$arrow_version")

    implementation "io.arrow-kt:arrow-core"
    ...
}

Next development version

If you want to try the latest features, replace 1.1.2 with one of the latest alpha, beta or rc publications.

Basic Setup

Make sure to have at least the latest version of JDK 1.8 installed. Add to your pom.xml file the following properties:


<properties>
    <kotlin.version>1.6.10</kotlin.version>
    <arrow.version>1.1.2</arrow.version>
</properties>

Add the dependencies that you want to use:


<dependency>
    <groupId>io.arrow-kt</groupId>
    <artifactId>arrow-core</artifactId>
    <version>${arrow.version}</version>
</dependency>

BOM file

To avoid specifying the Arrow version for every dependency, a BOM file is available:


<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>io.arrow-kt</groupId>
            <artifactId>arrow-stack</artifactId>
            <version>${arrow.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement><dependencies>
...
</dependencies>

Next development version

If you want to try the latest features, replace 1.1.2 with one of the latest alpha, beta or rc publications.

Do you like Arrow?

Arrow Org
<