vavr-io / vavr-kotlin

Vavr integration for Kotlin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Vavr integration for Kotlin

License:Apache License 2.0


Languages

Language:Kotlin 100.0%