Skip to content
This repository has been archived by the owner on Jan 22, 2021. It is now read-only.

neilpa/Erasure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Erasure Carthage compatible

Missing type-erased collections for Swift

Immutable

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.

Mutable

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.

License

Euclid is released under the MIT license