Bring the Rust [Result Option] types to Kotlin
Add the dependency to your build.gradle.kts:
dependencies {
implementation("kt.types:lib:0.0.1")
}val s = Some(2)
val n = None<Int>()
val r = Ok<Int, String>(2)
val e = Err<Int, String>("error")TODO: Write development instructions here
- Fork it (https://github.com/initdc/kt.types/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
- initdc - creator and maintainer