Skip to content

containers

containers #

Composite types built from other CGTypes: Array, Map, Struct.

Each is one module — Array[T] (a homogeneous sequence), Map[K, V] (a keyable-scalar-indexed mapping), and Struct (named fields). They compose by parameterization (Array[Image], Map[Date, Session]) or subclassing (a Struct names its fields), and vectorize lifts a scalar function elementwise over them. Array and Map share one broadcast rule (array.broadcast) over the absence machinery in types.core.container, and parallel runs it across the process's one thread pool (pmap); re-exports live at the capturegraph root.