aSoft-Ltd / either

An Either<L,R> multiplatform serializable datatype

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Either

badge badge badge badge badge

A multiplatform Either Datatype

Samples

val thing1: Either<Int, String> = Either.Left(1)
val thing2: Either<Int, String> = Either.Right("jaribio")
val thing3 = 3.asEither<Int, String>()

Setup

dependencies {
    implementation("tz.co.asoft:either:0.0.1")
}

About

An Either<L,R> multiplatform serializable datatype

License:MIT License


Languages

Language:Kotlin 100.0%