Skip to content

Instantly share code, notes, and snippets.

@mheiber
Last active July 3, 2023 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mheiber/0f8c49575367b94f40f7d41b99c65a64 to your computer and use it in GitHub Desktop.
Save mheiber/0f8c49575367b94f40f7d41b99c65a64 to your computer and use it in GitHub Desktop.
ocaml_binary(name = 'ackermann_3_2_is_' +
str(
(lambda x, m, n: x(x, m, n))
((lambda x, m, n: n + 1 if m == 0 else (x(x, m - 1, 1) if n == 0 else x(x, m - 1, x(x, m, n - 1)))), 3, 2)
), srcs = [], deps = [])
@mheiber
Copy link
Author

mheiber commented Jul 3, 2023

buck2 targets ':' 2> /dev/null | cut -d':' -f2
ackermann_3_2_is_29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment