mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-07 03:35:30 -05:00
CCString.equal,compare,hash
This commit is contained in:
parent
1fd7b9fbe0
commit
3ae7c7ca0b
2 changed files with 12 additions and 0 deletions
|
|
@ -28,6 +28,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
type t = string
|
type t = string
|
||||||
|
|
||||||
|
let equal a b = a=b
|
||||||
|
|
||||||
|
let compare = String.compare
|
||||||
|
|
||||||
|
let hash s = Hashtbl.hash s
|
||||||
|
|
||||||
type 'a gen = unit -> 'a option
|
type 'a gen = unit -> 'a option
|
||||||
type 'a sequence = ('a -> unit) -> unit
|
type 'a sequence = ('a -> unit) -> unit
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,12 @@ Consider using KMP instead. *)
|
||||||
|
|
||||||
type t = string
|
type t = string
|
||||||
|
|
||||||
|
val equal : t -> t -> bool
|
||||||
|
|
||||||
|
val compare : t -> t -> int
|
||||||
|
|
||||||
|
val hash : t -> int
|
||||||
|
|
||||||
type 'a gen = unit -> 'a option
|
type 'a gen = unit -> 'a option
|
||||||
type 'a sequence = ('a -> unit) -> unit
|
type 'a sequence = ('a -> unit) -> unit
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue