either

An Either<L,R> multiplatform serializable datatype

License

License

Categories

Categories

Data
GroupId

GroupId

tz.co.asoft
ArtifactId

ArtifactId

either-metadata
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

pom.sha512
Description

Description

either
An Either<L,R> multiplatform serializable datatype
Project URL

Project URL

https://github.com/aSoft-Ltd/either
Source Code Management

Source Code Management

https://github.com/aSoft-Ltd/either

Download either-metadata

Dependencies

compile (2)

Group / Artifact Type Version
org.jetbrains.kotlinx : kotlinx-serialization-json-metadata jar 1.0.1
org.jetbrains.kotlin : kotlin-stdlib-common jar 1.4.21

Project Modules

There are no modules declared in this project.

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")
}
tz.co.asoft

asoft

Versions

Version
0.0.1