shithub: mc

ref: 9a8ac636f97d0da01fe0d7283082bc7b9315e44e
dir: /test/fib.myr/

View raw version
use std
/* 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)
}