A4-Tacks / itermacros-rs

Some useful macros related to iterators.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Some useful macros related to iterators.

Examples

# use itermacros::iunpack;

let x = iunpack!(a, b, *c, d = 0..=5 => {
    (a, b, c, d)
} else panic!());
assert_eq!(x, (0, 1, vec![2, 3, 4], 5));

About

Some useful macros related to iterators.

License:MIT License


Languages

Language:Rust 100.0%