Jump to content

Ackermann function: Difference between revisions

→‎With Memoization and Optimization: A(4,2) | tostring | length
(→‎{{header|jq}}: note about gojq)
(→‎With Memoization and Optimization: A(4,2) | tostring | length)
Line 5,028:
def A(m;n): [m,n,{}] | ack | .[0];
</syntaxhighlight>
'''Examples:'''
'''Example:'''<syntaxhighlight lang="jq">A(4,1)</syntaxhighlight>
{{out}}
<syntaxhighlight lang="sh">65533</syntaxhighlight>
 
Using gojq:
<syntaxhighlight lang="jq">A(4;2) | tostring | length</syntaxhighlight>
{{out}}
<syntaxhighlight lang="sh">19729</syntaxhighlight>
 
=={{header|Jsish}}==
2,472

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.