Combinatorica`
Combinatorica`

NextSubset

NextSubset[l,s]

constructs the subset of l following subset s in canonical order.

Details and Options