package devkit

  1. Overview
  2. Docs
Development kit - general purpose library

Install

Dune Dependency

Authors

Maintainers

Sources

devkit-1.3.tbz
sha256=dae965685dceed47ad8e9844f12fe707dafdf2c3bdd46d0431d5b4d1e7754b23
sha512=b94ade804d751db87434042bbaa821fa8e82e233820a76806f910e2da040094b137e88a3579911a1626930912622b064c776ddbcb6991fb7111021ebf6553fdc

doc/devkit.core/Devkit_core/Cache/Count/index.html

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.