Skip to content

std.collections

Accepted

Accepted as a V1 namespace skeleton. Concrete collection APIs are deferred.

std.collections owns concrete collection types and collection adapters. Collection contracts that syntax lowers through remain prelude contracts under types/contracts.

Expected Contents

  • dynamic arrays and growable buffers
  • maps, sets, queues, stacks, and deques
  • collection views and adapters
  • collection-specific iterators and helper types
  • hash-based collections that depend on std.hash
  • implementations of prelude sequence and iterable contracts for concrete collection types

Concrete collections such as dynamic arrays, maps, sets, strings, and queues belong in std. They may implement prelude contracts, but their concrete types are not automatically in scope unless explicitly imported.

Owned text strings are documented under std.text. Generic byte buffers or non-text growable storage may still belong in std.collections.

V1 Boundary

V1 does not accept concrete collection types such as dynamic arrays, maps, sets, queues, buffers, iterator adapters, or collection helper APIs. Full collection design is deferred to CEP-0046: Standard Collections.