Extensions
The following extensions are available globally.
-
Declaration
Swift
protocol SequenceType
-
Returns a tuple of the prefix and suffix of
See moreself
, the first element being the prefix up ton
.Declaration
Swift
protocol CollectionType : Indexable, SequenceType
-
Declaration
Swift
protocol MutableCollectionType : MutableIndexable, CollectionType
-
Returns a lazy sequence of self, chunked into arrays of adjacent equal values “`swift [1, 2, 2, 3, 1, 1, 3, 4, 2].lazy.group()
[1], [2, 2], [3], [1, 1], [3], [4], [2] ”`
See moreDeclaration
Swift
protocol LazySequenceType : SequenceType