shithub: mc

ref: 34c3e5b0116a5283433c9cf6c3484ee6967e3030
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)
}