mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2026-01-25 02:26:42 -05:00
remove of_string constructor (shadowed)
This commit is contained in:
parent
dedcc574fb
commit
ad32699307
2 changed files with 3 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ let hash a = Hashtbl.hash a
|
|||
let of_int x = Atom (string_of_int x)
|
||||
let of_float x = Atom (string_of_float x)
|
||||
let of_bool x = Atom (string_of_bool x)
|
||||
let of_string x = Atom x
|
||||
let atom x = Atom x
|
||||
let of_unit = List []
|
||||
let of_list l = List l
|
||||
let of_rev_list l = List (List.rev l)
|
||||
|
|
|
|||
|
|
@ -41,11 +41,12 @@ val equal : t -> t -> bool
|
|||
val compare : t -> t -> int
|
||||
val hash : t -> int
|
||||
|
||||
val atom : string -> t (** Build an atom directly from a string *)
|
||||
|
||||
val of_int : int -> t
|
||||
val of_bool : bool -> t
|
||||
val of_list : t list -> t
|
||||
val of_rev_list : t list -> t (** Reverse the list *)
|
||||
val of_string : string -> t
|
||||
val of_float : float -> t
|
||||
val of_unit : t
|
||||
val of_pair : t * t -> t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue