/src/simple/simple.ml

http://github.com/hhughes/ocaml-frui · OCaml · 9 lines · 6 code · 3 blank · 0 comment · 0 complexity · 61a0d4b80b4cf03a6df9ae2398a47b51 MD5 · raw file

  1. let h = Hashtbl.create 10
  2. let _ = Hashtbl.replace h 0 1
  3. let one = Hashtbl.find h 0
  4. let lst = List.hd (1::2::3::[])
  5. let f a b = a+b
  6. let three = f one 2;;