package stdune

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

Parameters

module Key : Map.Key

Signature

type key = Key.t
type 'a t
val to_dyn : ('a -> Dyn.t) -> 'a t -> Dyn.t
val equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
val for_all : 'a -> 'a t

Create a mapping where all keys map to the same value

val of_mapping : (key list * 'a) list -> default:'a -> ('a t, key * 'a * 'a) Stdlib.result

Create a mapping from a list of bindings

val get : 'a t -> key -> 'a

Get the configuration for the given item

val is_constant : _ t -> bool

Returns true if the mapping returns the same value for all keys. Note that the mapping might still be constant if is_constant returns false.

val map : 'a t -> f:('a -> 'b) -> 'b t
val fold : 'a t -> init:'acc -> f:('a -> 'acc -> 'acc) -> 'acc
val exists : 'a t -> f:('a -> bool) -> bool
module Make_monad_traversals (Monad : sig ... end) : sig ... end
OCaml

Innovation. Community. Security.