mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
forgot a function in Sexp.Traverse
This commit is contained in:
parent
f19845f3d6
commit
78ac2f6f70
2 changed files with 3 additions and 0 deletions
|
|
@ -608,6 +608,7 @@ module Traverse = struct
|
|||
|
||||
let to_int e = _try_atom e int_of_string
|
||||
let to_bool e = _try_atom e bool_of_string
|
||||
let to_float e = _try_atom e float_of_string
|
||||
let to_string e = _try_atom e (fun x->x)
|
||||
|
||||
let to_pair e = match e with
|
||||
|
|
|
|||
|
|
@ -260,6 +260,8 @@ module Traverse : sig
|
|||
|
||||
val to_bool : t -> bool option
|
||||
|
||||
val to_float : t -> float option
|
||||
|
||||
val to_list : t -> t list option
|
||||
|
||||
val to_pair : t -> (t * t) option
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue