Write generic code that works with any collection, or build your own collection types.
On This Page
A type that provides sequential, iterated access to its elements.
A sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.
A collection that supports backward as well as forward traversal.
A collection that supports efficient random-access index traversal.
A collection that supports subscript assignment.
A collection that supports replacement of an arbitrary subrange of elements with the elements of another collection.
A type that supplies the values of a sequence one at a time.
A type that provides mathematical set operations.
A sequence on which normally-eager operations such as map and filter are implemented lazily.
A collection on which normally-eager operations such as map and filter are implemented lazily.
Use wrappers, indices, and iterators in operations like slicing, flattening, and reversing a collection.
Build your own buffer-backed collection types.