Advertisement
narenarya

Ocaml one liner factorial

May 22nd, 2014
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.05 KB | None | 0 0
  1. let rec fact n= if n<2 then 1 else n*fact(n-1);;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement