Experimental callbag implementation in Rust 🦀! Currently attempting to implement some of the core basics (see the list below for progress).
pipe!(
from_iter(0..10),
map(|x| x * 3),
filter(|x| x % 2 == 0),
map(|x| format!("The number is {}", x)),
for_each(|x| println!("{}", x))
);
Run tests with cargo test -- --nocapture
to see output.
The list below shows what's currently implemented/being attempted.
-
from_iter
-
interval
-
for_each
-
map
-
scan
-
flatten
-
take
-
take_until
-
take_while
-
take_until_interval
-
skip
-
skip_until
-
skip_while
-
filter
-
merge
- variadic with macromerge!
-
concat
-
combine
- tough one, need to flatten tuples
-
pipe
- variadic with macropipe!