RosettaCodeData/Task/Associative-array-Creation/OCaml/associative-array-creation-...

2 lines
71 B
OCaml

let quux = try Hashtbl.find hash "quux" with Not_found -> some_value;;