shithub: mc

ref: 3eebcf6c31e23b12d11332f3b424bfe91dc66dcc
dir: /test/fib.myr/

View raw version
/* checks if recursive functions work. should return 21. */
const fib = {n
	if n <= 0
		-> 0
	elif n == 1
		-> 1
	else
		-> fib(n - 1) + fib(n - 2)
	;;
}

const main = {
	-> fib(8)
}