Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Ackermann-function/SETL/ackermann-function.setl
Normal file
11
Task/Ackermann-function/SETL/ackermann-function.setl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
program ackermann;
|
||||
|
||||
(for m in [0..3])
|
||||
print(+/ [rpad('' + ack(m, n), 4): n in [0..6]]);
|
||||
end;
|
||||
|
||||
proc ack(m, n);
|
||||
return {[0,n+1]}(m) ? ack(m-1, {[0,1]}(n) ? ack(m, n-1));
|
||||
end proc;
|
||||
|
||||
end program;
|
||||
Loading…
Add table
Add a link
Reference in a new issue