fun fib (n: int): int = do case n of | 1 -> return 1 | 2 -> return 1 | else -> return fib(n - 1) + fib(n - 2) end end fun main: void = do fib(5) |> @write(_) end