2 ms·
Actually, it does here. Definitions with let in OCaml are not recursive. let rec permits you to have recursive definitions. A simple numeric function is probabl
by Jtsummers 5y ago
Actually, it does here. Definitions with let in OCaml are not recursive. let rec permits you to have recursive definitions. A simple numeric function is probably the fastest way to show something that a user can type in that illustrates how you'd write a simple recursive function.