Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
15
Task/Power-set/Dyalect/power-set.dyalect
Normal file
15
Task/Power-set/Dyalect/power-set.dyalect
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
let n = 4
|
||||
let buf = Array.Empty(n)
|
||||
|
||||
func rec(idx, begin) {
|
||||
for i in begin..<n {
|
||||
buf[idx] = i
|
||||
for j in 0..idx {
|
||||
print("{0, 2}".Format(buf[j]), terminator: "")
|
||||
}
|
||||
print("")
|
||||
rec(idx + 1, buf[idx] + 1)
|
||||
}
|
||||
}
|
||||
|
||||
rec(0, 0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue