https://github.com/initdc/kt.types
Bring the Rust [Result Option] types to Kotlin
https://github.com/initdc/kt.types
error-handling kotlin option-type result-type rust
Last synced: 13 days ago
JSON representation
Bring the Rust [Result Option] types to Kotlin
- Host: GitHub
- URL: https://github.com/initdc/kt.types
- Owner: initdc
- License: mpl-2.0
- Created: 2026-01-14T00:08:38.000Z (5 months ago)
- Default Branch: dev
- Last Pushed: 2026-01-23T16:17:24.000Z (5 months ago)
- Last Synced: 2026-01-24T06:34:58.180Z (5 months ago)
- Topics: error-handling, kotlin, option-type, result-type, rust
- Language: Kotlin
- Homepage: https://central.sonatype.com/search?q=io.github.initdc+types
- Size: 69.3 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kt.types
Bring the Rust [Result Option] types to Kotlin
## Installation
Add the dependency to your `build.gradle.kts`:
```gradle
dependencies {
implementation("io.github.initdc:types:0.1.0")
}
```
## Usage
```kotlin
import kt.types.*
val s = some(2)
val n = none()
val r = ok(2)
val e = err("error")
```
## Development
TODO: Write development instructions here
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [initdc](https://github.com/initdc) - creator and maintainer