package stdune

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

Module Per_item.MakeSource

Parameters

module Key : Map.Key

Signature

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

Create a mapping where all keys map to the same value

Sourceval of_mapping : (key list * 'a) list -> default:'a -> ('a t, key * 'a * 'a) result

Create a mapping from a list of bindings

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

Get the configuration for the given item

Sourceval 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.

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

Innovation. Community. Security.