Type Alias

ClosedRange.SubSequence

A sequence that represents a contiguous subrange of the collection’s elements.

Declaration

typealias SubSequence = Slice<ClosedRange<Bound>>
Available when Bound conforms to Strideable and Bound.Stride conforms to SignedInteger.

Discussion

This associated type appears as a requirement in the Sequence protocol, but it is restated here with stricter constraints. In a collection, the subsequence should also conform to Collection.

See Also

Supporting Types

enum ClosedRange.Index

A type that represents a position in the collection.

typealias ClosedRange.Element

A type representing the sequence’s elements.

typealias ClosedRange.Iterator

A type that provides the sequence’s iteration interface and encapsulates its iteration state.