stable-tree-0.7.0: Trees whose branches are resistant to change

CopyrightJeremy Groven
LicenseBSD3
Safe HaskellNone
LanguageHaskell2010

Data.StableTree.Mutate

Description

Functions for "updating" StableTrees, in the functional sense. This covers insertion, deletion, etc.

Synopsis

Documentation

insert :: (Ord k, StableKey k) => k -> v -> StableTree k v -> StableTree k v Source

Insert a key/value into a StableTree. If the key exists, its existing value is overwritten.

delete :: (Ord k, StableKey k) => k -> StableTree k v -> StableTree k v Source

Remove a key from the StableTree. If the key is not found, the tree is returned unchanged.