package kappa-library

  1. Overview
  2. Docs

Maps from patterns to something

type 'a t
val dummy : 'a -> 'a t
val get : 'a t -> id -> 'a
val set : 'a t -> id -> 'a -> unit
val fold_lefti : (id -> 'a -> 'b -> 'a) -> 'a -> 'b t -> 'a
val map : ('a -> 'b) -> 'a t -> 'b t
val iteri : (id -> 'a -> unit) -> 'a t -> unit
val print : ?trailing:(Format.formatter -> unit) -> (Format.formatter -> unit) -> (id -> Format.formatter -> 'a -> unit) -> Format.formatter -> 'a t -> unit
OCaml

Innovation. Community. Security.