package stog

  1. Overview
  2. Docs

Module Stog.TmapSource

Sourcemodule type S = sig ... end

Storing data referenced by a unique id. Uses maps to store the information,

include S
Sourcetype 'a key
Sourcetype ('key, 'a) t
Sourceval create : 'a -> ('key, 'a) t
Sourceval compare_key : 'a key -> 'a key -> int
Sourceval get : ('key, 'a) t -> 'key key -> 'a
Sourceval add : ('key, 'a) t -> 'a -> 'key key * ('key, 'a) t
Sourceval fold : ('key key -> 'a -> 'b -> 'b) -> ('key, 'a) t -> 'b -> 'b
Sourceval find : ('key, 'a) t -> ('a -> bool) -> 'key key
Sourceval int : 'key key -> int
Sourceval iter : ('key key -> 'a -> unit) -> ('key, 'a) t -> unit
Sourceval remove : ('key, 'a) t -> 'key key -> ('key, 'a) t
Sourceval modify : ('key, 'a) t -> 'key key -> 'a -> ('key, 'a) t
Sourceval card : ('key, 'a) t -> int