PowerSetExtension<E> extension

on

Methods

powerSet() Iterable<List<E>>

Available on Iterable<E>, provided by the PowerSetExtension extension

Returns all subsets of this iterable including the empty set and the complete set itself. The power-set has 2^n elements, if the iterable has length n.