RosettaCodeData/Task/Power-set/Sidef/power-set.sidef
2016-12-05 23:44:36 +01:00

4 lines
76 B
Text

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