package spotlib

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Spotlib.HashsetSource

Poorman's hashset by Hashtbl

Sourcetype 'a t
Sourceval create : ?random:bool -> int -> 'a t
Sourceval add : 'a t -> 'a -> unit
Sourceval remove : 'a t -> 'a -> unit
Sourceval mem : 'a t -> 'a -> bool
Sourceval find : 'a t -> 'a -> 'a
Sourceval find_opt : 'a t -> 'a -> 'a option

find and find_opt finds the 'same' element in the set. Good for hash consing

Sourceval find_or_add : 'a t -> 'a -> 'a
Sourceval iter : ('a -> unit) -> 'a t -> unit
Sourceval fold : ('a -> 'b -> 'b) -> 'a t -> 'b -> 'b
Sourceval elements : 'a t -> int
Sourceval clear : 'a t -> unit
Sourceval of_list : int -> 'a list -> 'a t
Sourceval to_list : 'a t -> 'a list
Sourcemodule Make (A : Hashtbl.HashedType) : sig ... end
OCaml

Innovation. Community. Security.