either

An Either<L,R> multiplatform serializable datatype

License

License

Categories

Categories

JavaScript Languages
GroupId

GroupId

tz.co.asoft
ArtifactId

ArtifactId

either-js
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

klib
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-js

Dependencies

compile (3)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-js jar 1.4.21
org.jetbrains.kotlinx : kotlinx-serialization-json-js 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