package core

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include Accessors2
include Set.Accessors2
type ('a, 'phantom) t
val length : ('a, 'b) t -> int
val is_empty : ('a, 'b) t -> bool
val iter : ('a, 'b) t -> f:('a -> unit) -> unit
val fold : ('a, 'b) t -> init:'accum -> f:('accum -> 'a -> 'accum) -> 'accum
val fold_result : ('a, 'b) t -> init:'accum -> f:('accum -> 'a -> ('accum, 'e) Base__.Result.t) -> ('accum, 'e) Base__.Result.t
val exists : ('a, 'b) t -> f:('a -> bool) -> bool
val for_all : ('a, 'b) t -> f:('a -> bool) -> bool
val count : ('a, 'b) t -> f:('a -> bool) -> int
val sum : (module Base__Container_intf.Summable with type t = 'sum) -> ('a, 'b) t -> f:('a -> 'sum) -> 'sum
val find : ('a, 'b) t -> f:('a -> bool) -> 'a option
val find_map : ('a, 'c) t -> f:('a -> 'b option) -> 'b option
val to_list : ('a, 'b) t -> 'a list
val to_array : ('a, 'b) t -> 'a array
type ('a, 'cmp) tree
val invariants : ('a, 'b) t -> bool
val mem : ('a, 'b) t -> 'a -> bool
val add : ('a, 'cmp) t -> 'a -> ('a, 'cmp) t
val remove : ('a, 'cmp) t -> 'a -> ('a, 'cmp) t
val union : ('a, 'cmp) t -> ('a, 'cmp) t -> ('a, 'cmp) t
val inter : ('a, 'cmp) t -> ('a, 'cmp) t -> ('a, 'cmp) t
val diff : ('a, 'cmp) t -> ('a, 'cmp) t -> ('a, 'cmp) t
val symmetric_diff : ('a, 'cmp) t -> ('a, 'cmp) t -> ('a, 'a) Base__.Either.t Base__.Sequence.t
val compare_direct : ('a, 'cmp) t -> ('a, 'cmp) t -> int
val equal : ('a, 'cmp) t -> ('a, 'cmp) t -> bool
val is_subset : ('a, 'cmp) t -> of_:('a, 'cmp) t -> bool
val are_disjoint : ('a, 'cmp) t -> ('a, 'cmp) t -> bool
type ('a, 'cmp) named
module Named : sig ... end
val fold_until : ('a, 'c) t -> init:'b -> f:('b -> 'a -> ('b, 'final) Base__.Container.Continue_or_stop.t) -> finish:('b -> 'final) -> 'final
val fold_right : ('a, 'c) t -> init:'b -> f:('a -> 'b -> 'b) -> 'b
val iter2 : ('a, 'cmp) t -> ('a, 'cmp) t -> f:([ `Both of 'a * 'a | `Left of 'a | `Right of 'a ] -> unit) -> unit
val filter : ('a, 'cmp) t -> f:('a -> bool) -> ('a, 'cmp) t
val partition_tf : ('a, 'cmp) t -> f:('a -> bool) -> ('a, 'cmp) t * ('a, 'cmp) t
val elements : ('a, 'b) t -> 'a list
val min_elt : ('a, 'b) t -> 'a option
val min_elt_exn : ('a, 'b) t -> 'a
val max_elt : ('a, 'b) t -> 'a option
val max_elt_exn : ('a, 'b) t -> 'a
val choose : ('a, 'b) t -> 'a option
val choose_exn : ('a, 'b) t -> 'a
val split : ('a, 'cmp) t -> 'a -> ('a, 'cmp) t * 'a option * ('a, 'cmp) t
val group_by : ('a, 'cmp) t -> equiv:('a -> 'a -> bool) -> ('a, 'cmp) t list
val find_exn : ('a, 'b) t -> f:('a -> bool) -> 'a
val nth : ('a, 'b) t -> int -> 'a option
val remove_index : ('a, 'cmp) t -> int -> ('a, 'cmp) t
val to_tree : ('a, 'cmp) t -> ('a, 'cmp) tree
val to_sequence : ?order:[ `Decreasing | `Increasing ] -> ?greater_or_equal_to:'a -> ?less_or_equal_to:'a -> ('a, 'cmp) t -> 'a Base__.Sequence.t
val binary_search_segmented : ('a, 'cmp) t -> segment_of:('a -> [ `Left | `Right ]) -> Base__.Binary_searchable.Which_target_by_segment.t -> 'a option
val merge_to_sequence : ?order:[ `Decreasing | `Increasing ] -> ?greater_or_equal_to:'a -> ?less_or_equal_to:'a -> ('a, 'cmp) t -> ('a, 'cmp) t -> ('a, 'a) Base__Set_intf.Merge_to_sequence_element.t Base__.Sequence.t
val to_map : ('a, 'cmp) t -> f:('a -> 'b) -> ('a, 'b, 'cmp) Base.Map.t
val quickcheck_observer : 'a Quickcheck.Observer.t -> ('a, 'cmp) t Quickcheck.Observer.t
val quickcheck_shrinker : 'a Quickcheck.Shrinker.t -> ('a, 'cmp) t Quickcheck.Shrinker.t
include Creators2 with type ('a, 'b) t := ('a, 'b) t with type ('a, 'b) tree := ('a, 'b) tree
include Set.Creators2 with type ('a, 'b) t := ('a, 'b) t with type ('a, 'b) tree := ('a, 'b) tree
type ('a, 'cmp) set
val empty : ('a, 'cmp) t
val singleton : 'a -> ('a, 'cmp) t
val union_list : ('a, 'cmp) t list -> ('a, 'cmp) t
val of_list : 'a list -> ('a, 'cmp) t
val of_sequence : 'a Base__.Sequence.t -> ('a, 'cmp) t
val of_array : 'a array -> ('a, 'cmp) t
val of_sorted_array : 'a array -> ('a, 'cmp) t Base__.Or_error.t
val of_sorted_array_unchecked : 'a array -> ('a, 'cmp) t
val of_increasing_iterator_unchecked : len:int -> f:(int -> 'a) -> ('a, 'cmp) t
val stable_dedup_list : 'a list -> 'a list
val map : ('a, 'c) set -> f:('a -> 'b) -> ('b, 'cmp) t
val filter_map : ('a, 'c) set -> f:('a -> 'b option) -> ('b, 'cmp) t
val of_tree : ('a, 'cmp) tree -> ('a, 'cmp) t
val of_hash_set : 'a Hash_set.t -> ('a, 'cmp) t
val of_hashtbl_keys : ('a, _) Hashtbl.t -> ('a, 'cmp) t
val of_map_keys : ('a, _, 'cmp) Base.Map.t -> ('a, 'cmp) t
val quickcheck_generator : 'a Quickcheck.Generator.t -> ('a, 'cmp) t Quickcheck.Generator.t
OCaml

Innovation. Community. Security.