Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sphrak/Either
☯️ Either type for Kotlin
https://github.com/sphrak/Either
android either-monad functional kotlin
Last synced: 3 months ago
JSON representation
☯️ Either type for Kotlin
- Host: GitHub
- URL: https://github.com/sphrak/Either
- Owner: sphrak
- License: other
- Created: 2019-08-28T14:29:40.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-10T15:16:39.000Z (7 months ago)
- Last Synced: 2024-01-17T02:34:22.749Z (5 months ago)
- Topics: android, either-monad, functional, kotlin
- Language: Kotlin
- Homepage:
- Size: 122 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Lists
- awesome-list - sphrak/Either - ☯️ Either type for Kotlin (Kotlin)
README
[![](https://jitpack.io/v/sphrak/Either.svg)](https://jitpack.io/#sphrak/Either)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/sphrak/Either/blob/master/LICENSE)# Either
A container type for representing values. The `Either` type represents values with two possibilities. A value of type `Either` is either `Either.Left(a)` or `Either.Right(b)`.The `Either` type is sometimes used to represent a value which is either correct or an error; by convention, the `Either.Left` constructor is used to hold an error value and the `Either.Right` constructor is used to hold a correct value (mnemonic: "right" also means "correct").
* [Documentation](https://sphrak.github.io/Either/)
* [Download](https://github.com/sphrak/Either#download)
* [License](https://github.com/sphrak/Either#license)### Download
Make sure to have **jitpack** in the list of repositories.
```groovy
repositories {
maven { url 'https://jitpack.io' }
}
```**build.gradle:**
```groovy
implementation "io.github.sphrak:either:2.2.2"
```**build.gradle.kts:**
```kotlin
implementation("io.github.sphrak:either:2.2.2")
```### License
Copyright 2018 Niclas Kron
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.