Ackermann function: Difference between revisions
m
→{{header|Joy}}
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
m (→{{header|Joy}}) |
||
Line 4,943:
=={{header|Joy}}==
[[null] pop pred 1 ack]
▲<syntaxhighlight lang=joy>DEFINE ack == [ [ [pop null] popd succ ]
[[dup pred
another using a combinator:▼
▲ cond.</syntaxhighlight>
▲another using a combinator
[[null] [pop pred 1] []]
▲<syntaxhighlight lang=joy>DEFINE ack == [ [ [pop null] [popd succ] ]
▲ condnestrec.</syntaxhighlight>
=={{header|jq}}==
|