Skip to content

aedans/Kop

Repository files navigation

Kop

Download

A small coproduct library for Kotlin.

Gradle

repositories {
    maven { url 'https://dl.bintray.com/aedans/maven/' }
}

dependencies {
    compile 'io.github.aedans:kop:1.0.1'
}

Features

  • Standard coproduct type Coproduct a b = Left a | Right b
  • Coproduct typealiases up to 26
  • Coproduct.fold up to 26
  • Coproduct.map up to 26
  • Coproduct.value up to 26
  • Kategory interop

Automatic Code Generation

The code generator is located here. Note that when adding a new generator method, you must also call it from build.gradle:codegen.

To increase the number of auto-generated utilities, there is a variable called num in build.gradle. However, you will have to build and publish to another Maven repository to use this change.

About

A small coproduct library for Kotlin.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages