package devkit

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

Install

Dune Dependency

Authors

Maintainers

Sources

devkit-1.20240429.tbz
sha256=222f8ac131b1d970dab7eeb2714bfd6b9338b88b1082e6e01c136ae19e7eaef4
sha512=c9e6d93e3d21e5530c0f4d5baca51bf1f0a5d19248f8af7678d0665bb5cdf295d7aaaaa3e50eb2e44b8720e55097cc675af4dc8ec45acf9da39feb3eae1405d5

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.