powerSet

fun <T> Set<T>.powerSet(): Set<Set<T>>

Returns the set of all possible subsets. See wikipedia article of power set.

Receiver

the set for which all possible subsets are constructed

Return

all possible subsets