Type Aliasswift 6.1.2Swift
SubSequence
typealias SubSequence = Slice<LazyPrefixWhileCollection<Base>>typealias SubSequence = Slice<LazyPrefixWhileCollection<Base>>where Base:Collectionimport Swift@frozen struct LazyPrefixWhileSequence<Base> where Base : SequenceA sequence whose elements consist of the initial consecutive elements of some base sequence that satisfy a given predicate.
@frozen struct Slice<Base> where Base : CollectionA view into a subsequence of elements of another collection.
typealias LazyPrefixWhileCollection<T> = LazyPrefixWhileSequence<T> where T : CollectionA lazy collection wrapper that includes the initial consecutive elements of an underlying collection that satisfy a predicate.
protocol Collection<Element> : SequenceA sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.
var endIndex: LazyPrefixWhileSequence<Base>.Index { get }var startIndex: LazyPrefixWhileSequence<Base>.Index { get }subscript(position: LazyPrefixWhileSequence<Base>.Index) -> LazyPrefixWhileSequence<Base>.Element { get } func index(after i: LazyPrefixWhileSequence<Base>.Index) -> LazyPrefixWhileSequence<Base>.Index @frozen struct IndexA position in a LazyPrefixWhileCollection or LazyPrefixWhileBidirectionalCollection instance.