Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,4 @@
|
|||
def ack ( m, n ) {
|
||||
assert m >= 0 && n >= 0 : 'both arguments must be non-negative'
|
||||
m == 0 ? n + 1 : n == 0 ? ack(m-1, 1) : ack(m-1, ack(m, n-1))
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
def ackMatrix = (0..3).collect { m -> (0..8).collect { n -> ack(m, n) } }
|
||||
ackMatrix.each { it.each { elt -> printf "%7d", elt }; println() }
|
||||
Loading…
Add table
Add a link
Reference in a new issue