7 lines
162 B
Text
7 lines
162 B
Text
# The power set of the empty set:
|
|
[] | powerset
|
|
# => [[]]
|
|
|
|
# The power set of the set which contains only the empty set:
|
|
[ [] ] | powerset
|
|
# => [[],[[]]]
|