Xcode 7 beta 4 is available today with the latest revision to Swift 2.0. Along with indirect enums, beta 4 includes some significant changes to the standard library, including:
-
The protocol hierarchy for sequences and collections has been overhauled, with subscripting moved from
CollectionType
to a newIndexable
protocol. This change, along with the addition of aSubSequence
type alias insideCollectionType
, sees the end of theSliceable
protocol and the introduction of a newSlice
struct that can be based on any indexable instance. -
As noted in the release notes,
SinkType
andSinkOf
are now gone, being replaced by(T) -> ()
closures in the few relevant functions and methods. -
The list of free functions is getting leaner and leaner as functions move into protocol extensions. The extensible and range-replaceable collection have shuffled off their mortal coil this time (along with
ExtensibleCollectionType
itself).