4 lines
76 B
Text
4 lines
76 B
Text
var arr = %w(a b c)
|
|
for i in (0 .. arr.len) {
|
|
say arr.combinations(i)
|
|
}
|