📚 The CoCalc Library - books, templates and other resources
1(* Fibonacci function *) 2 3let rec fib n = 4 if n < 2 then 1 else fib (n - 1) + fib (n - 2) 5;; 6 7print_int (fib ( 10 )); 8print_newline(); 9 10