powerset library

Functions

powerset<T>(Iterable<T> iterable) Iterable<List<T>>
Returns the power set of the given iterable. This will also work with infinite iterables. The power set of an iterable is an iterable that contains all possible subsequences of that iterable.