RosettaCodeData/Task/Power-set/Sidef/power-set.sidef

5 lines
76 B
Plaintext

var arr = %w(a b c)
for i in (0 .. arr.len) {
say arr.combinations(i)
}