Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sczerwinski/kotlin-util

Kotlin utility types based on Scala
https://github.com/sczerwinski/kotlin-util

either kotlin kotlin-library option try

Last synced: 2 months ago
JSON representation

Kotlin utility types based on Scala

Awesome Lists containing this project

README

        

[![Build](https://github.com/sczerwinski/kotlin-util/workflows/Build/badge.svg)](https://github.com/sczerwinski/kotlin-util/actions)
![Kotlin Multiplatform](https://img.shields.io/badge/Kotlin-Multiplatform-blueviolet)
[![Release](https://github.com/sczerwinski/kotlin-util/workflows/Release/badge.svg)](https://github.com/sczerwinski/kotlin-util/actions)
[![Maven Central](https://img.shields.io/maven-central/v/it.czerwinski/kotlin-util.svg)](https://repo1.maven.org/maven2/it/czerwinski/kotlin-util/)
[![Sonatype Snapshot](https://img.shields.io/nexus/s/https/oss.sonatype.org/it.czerwinski/kotlin-util.svg)](https://oss.sonatype.org/content/repositories/snapshots/it/czerwinski/kotlin-util/)

# ![icon.svg](.idea/icon.svg) Kotlin Utilities

## Project Setup

### Gradle

#### Kotlin

```kotlin
implementation("it.czerwinski:kotlin-util:2.0.0")
```

#### Groovy

```groovy
implementation 'it.czerwinski:kotlin-util:2.0.0'
```

### Maven

```xml

it.czerwinski
kotlin-util
2.0.0

```

### Kotlin Multiplatform Projects

In multiplatform projects, the library can be used as `commonMain` dependency.

### Java Modules (JPMS)

In projects using Java Modules (JPMS), add the following line
to your `module-info.java`:

```java
module your.module {
requires it.czerwinski.kotlin.util;
}
```

## Supported Types

Package `it.czerwinski.kotlin.collections`:
* `EmptyIterator`
* `SingletonIterator`

Package `it.czerwinski.kotlin.util`:
* `Option`
* `Either`
* `Try`

For a more detailed documentation, visit
[project website](https://czerwinski.it/projects/kotlin-util/).