Macro rustcomp::set_comp

source ·
macro_rules! set_comp {
    ($($t:tt)*) => { ... };
}
Expand description

Performs a comprehension and returns a HashSet containing the results. For more information, see vec_comp!.

Example

let matrix = //...
let v = set_comp![for row in matrix; for col in row => col, if col % 2 == 0];