ocaml-standard-library/lib/bool.ml

8 lines
110 B
OCaml
Executable File

open General
let of_string = function
| "true" -> Some true
| "false" -> Some false
| _ -> None