Vavr integration for Kotlin
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper release 0.9.3 Jan 23, 2019
src release 0.9.3 Jan 23, 2019
.gitignore Draft version (#2) Apr 13, 2017
.travis.yml
LICENSE update copyright headers; add license Sep 12, 2017
README.md mave-central badge Sep 18, 2017
build.gradle.kts
gradlew release 0.9.3 Jan 23, 2019
gradlew.bat release 0.9.3 Jan 23, 2019
settings.gradle.kts using gradle-kotlin-script Aug 14, 2018

README.md

Maven Central Build Status codecov

Vavr Kotlin

Vavr Kotlin is a set of Kotlin niceties for the Vavr functional collections library:

  • idiomatic factory methods
  • extension forms of sequence
  • conversions to and from Kotlin collections

Usage

Import Vavr Kotlin as follows:

import io.vavr.kotlin.*

Profit:

val optionOf: Option<Seq<Int>> = list(some(1), some(2), none()).sequence()

See the Wiki for detailed API.