placeholder_closure

CI Crates.io Crates.io

Scala's Placeholder Syntax for Rust.

```rust use placeholder_closure::λ;

let xs = xs.into_iter().map(λ!($ + 1)).collect::>();

fn dot Z, G: FnOnce(X) -> Y, X, Y, Z>(f: F, g: G) -> impl FnOnce(X) -> Z { λ!(move { f(g($)) }) } ```

Usage

See the documentation on Docs.rs.

License

Licensed under CC0-1.0.