Skip to content

Instantly share code, notes, and snippets.

@trichin1
trichin1 / ackermann.oak
Created November 21, 2024 07:04 — forked from thesephist/ackermann.oak
Ackermann function calculator
#!/usr/bin/env oak
std := import('std')
str := import('str')
fmt := import('fmt')
math := import('math')
cli := import('cli')
// ackermann computes the Ackermann function of m, n
fn ackermann(m, n) if {