README.md
# Gleither ↔️
A small data-structure for representing an Either Monad. Written in the excellent [gleam ✨](https://gleam.run/) language. Supporting both Erlang & Javascript targets
[](https://github.com/bwireman/gleither/actions/workflows/test.yml)
[](https://github.com/bwireman/gleither/commit/main)
[](https://github.com/bwireman/gleither/blob/main/LICENSE)
[](http://makeapullrequest.com)
Docs: https://hexdocs.pm/gleither/
```sh
gleam add gleither
```
```gleam
import gleither.{Left, Right, map, get}
pub fn main() {
Left(1)
|> map(fn(x) { x + 1 })
|> get()
// Some(2)
}
```