lazy-pipe

Crates.iolazy-pipe
lib.rslazy-pipe
version0.1.3
sourcesrc
created_at2019-05-20 18:32:21.252429
updated_at2019-05-21 06:32:44.300815
descriptionChain closures into a pipeline
homepage
repositoryhttps://github.com/ksxrustcrates/lazy-pipe
max_upload_size
id135676
size6,796
Khải (KSXGitHub)

documentation

https://docs.rs/lazy-pipe/

README

lazy-pipe

Chain closures into a pipeline

Usage

let expected = ((3 + 1) / 2).to_string();

let received = pipe(3)
    .map(|x| x + 1)
    .map(|x| x / 2)
    .map(|x| x.to_string())
    .unwrap();

assert_eq!(received, expected);

Documentation

License

MIT © Hoàng Văn Khải

Commit count: 24

cargo fmt