package devkit

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

Module Cache.CountSource

Count elements

Sourcetype 'a t
Sourceval create : unit -> 'a t
Sourceval of_list : ('a * int) list -> 'a t
Sourceval of_enum : ('a * int) Enum.t -> 'a t
Sourceval clear : 'a t -> unit
Sourceval add : 'a t -> 'a -> unit
Sourceval plus : 'a t -> 'a -> int -> unit
Sourceval del : 'a t -> 'a -> unit
Sourceval minus : 'a t -> 'a -> int -> unit
Sourceval enum : 'a t -> ('a * int) Enum.t
Sourceval iter : 'a t -> ('a -> int -> unit) -> unit
Sourceval fold : 'a t -> ('a -> int -> 'b -> 'b) -> 'b -> 'b
Sourceval count : 'a t -> 'a -> int

number of times given element was seen

Sourceval count_all : 'a t -> int
Sourceval size : 'a t -> int

number of distinct elements

Sourceval show : 'a t -> ?sep:string -> ('a -> string) -> string
Sourceval show_sorted : 'a t -> ?limit:int -> ?sep:string -> ('a -> string) -> string
Sourceval stats : 'a t -> ?cmp:('a -> 'a -> int) -> ('a -> string) -> string
Sourceval report : 'a t -> ?limit:int -> ?cmp:('a -> 'a -> int) -> ?sep:string -> ('a -> string) -> string
Sourceval distrib : float t -> float array
Sourceval show_distrib : ?sep:string -> float t -> string
Sourceval names : 'a t -> 'a list
OCaml

Innovation. Community. Security.