RosettaCodeData/Task/Power-set/Jq/power-set-2.jq
2017-09-25 22:28:19 +02:00

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
# => [[],[[]]]