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

Build BTreeSet from collection iterator comprehensions.

Limitations

  • Only 3 nested comprehensions

Examples:

use sugars::cbtset;

let w = cbtset!{x; x in 1..10};
let z = cbtset!{x; x in 1..10, if x%2 == 0};