Skip to main content

subsets

Function subsets 

Source
pub fn subsets(k: u32) -> impl Iterator<Item = u64>
Expand description

Iterate over all 2^k non-empty subsets of a k-bit mask.

k is the bit-width of the universe (e.g. 4 for a 4-bit mask).