liveBook · Manning

Associative container

An associative container is a data structure that organizes elements for retrieval by keys rather than solely by positional order.

How 2 Manning books explain it

Clojure: The Essential Reference

An associative data structure is a collection that supports lookup of values by keys or numeric indexes.

How it is used
Organizes presence tests, nested reads, and functional updates around keyed access to maps and vectors.
How deep it goes
Specifies supported inputs, return behavior, missing-key cases, and exceptions through examples, without developing container internals.
Examples
Uses map-key and vector-index checks, nested lookups, word counters, and inventory updates.
What you can do after
Apply it via Clojure's contains?, get-in, select-keys, update, and update-in to test, read, and transform keyed data.

Read how Clojure: The Essential Reference explains associative container →

Learn C++ by Example

An associative container is a data structure that organizes elements by keys or ordered values rather than by positional indexes.

How it is used
Uses associative containers to implement dictionaries and support an answer-overlap game.
How deep it goes
Explains maps, multimaps, sets, access behavior, complexity, and bound searches, stopping short of full implementation internals.
Examples
Demonstrates hardcoded dictionaries, overlapping words, bound searches, and random dictionary selection.
What you can do after
Apply associative containers to build dictionary lookups and improve ordered searches.

Read how Learn C++ by Example explains associative container →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.