remove of_string constructor (shadowed)

This commit is contained in:
Simon Cruanes 2014-09-28 17:44:48 +02:00
parent dedcc574fb
commit ad32699307
2 changed files with 3 additions and 2 deletions

View file

@ -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)

View file

@ -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