shithub: mc

ref: 32abfabfaf95942558a590a307432b499f392ea9
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))
}