Missing type-erased collections for Swift
struct CollectionOf<T, Index: ForwardIndexType>: CollectionType
A type-erased collection implemenation.
struct SliceableOf<T, Index: ForwardIndexType>: Sliceable
A type-erased sliceable collection. Useful for cases like Array
and ArraySlice
where the slice type differs from the root type.
The mutable variants are mostly proof-of-concept and of limited real world value
struct MutableCollectionOf<T, Index: ForwardIndexType>: MutableCollectionType
The mutable equivalent of CollectionOf
.
struct ExtensibleCollectionOf<T>: ExtensibleCollectionType
A type-erased ExtensibleCollectionType
, limited to Int
indices.
Euclid is released under the MIT license