Associative mapping operations - Factor Documentation (original) (raw)

An associative mapping, abbreviated assoc, is a collection of key/value pairs which provides efficient lookup and storage indexed by key.

Words used for working with assocs are in the assocs vocabulary.

Associative mappings implement a protocol:
Associative mapping protocol

A large set of utility words work on any object whose class implements the associative mapping protocol.
Lookup and querying of assocs
Transposed assoc operations
Storing keys and values in assocs
Associative mapping combinators
Set-theoretic operations on assocs
Associative mapping conversions