shithub: mc

ref: 49b61a099de4734e638b1122a5542dd616edd462
dir: /test/closurerec.myr/

View raw version
use std

const main = {
	const fib = {n
		if n <= 0
			-> 0
		elif n == 1
			-> 1
		else
			-> fib(n - 1) + fib(n - 2)
		;;
	}
	std.exit(fib(8))
}