macro_rules! clkl {
    ($($tokens: tt)+) => { ... };
}
Expand description

Build LinkedList from collection iterator comprehensions.

Limitations

  • Only 3 nested comprehensions

Examples:

use sugars::clkl;

let w = clkl![x; x in 1..10];
let z = clkl![x; x in 1..10, if x%2 == 0];