id_effect 0.10.1

Effect<A, E, R>: lazy Send effects over a typed capability list, run on a fiber runtime (Tokio executor), with layers, streams, schedules and coordination
Documentation
1
2
3
4
5
6
7
8
9
10
11
# Foldable and Alternative

**Foldable** summarizes collections; **Alternative** expresses choice (`empty` / `alt`).

```rust
use id_effect_fp::algebra::foldable::option::fold_right;
use id_effect_fp::algebra::alternative::option::{alt, empty};

let sum = fold_right(Some(3), 0, |a, b| a + b);
let chosen = alt(empty(), Some(42));
```