Instance Subscriptswift 6.0.3Swift
subscript(_:)
subscript(position: LazyPrefixWhileSequence<Base>.Index) -> LazyPrefixWhileSequence<Base>.Element { get }
subscript(position: LazyPrefixWhileSequence<Base>.Index) -> LazyPrefixWhileSequence<Base>.Element { get }
ss23LazyPrefixWhileSequenceVsSlRzrlEy7ElementQzABsSlRzrlE5IndexVyx_Gcip
What are these?98NOI
where Base:Collection
import Swift
@frozen struct LazyPrefixWhileSequence<Base> where Base : Sequence
A sequence whose elements consist of the initial consecutive elements of some base sequence that satisfy a given predicate.
@frozen struct Index
A position in a LazyPrefixWhileCollection
or LazyPrefixWhileBidirectionalCollection
instance.
protocol Collection<Element> : Sequence
A 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 }
func index(after i: LazyPrefixWhileSequence<Base>.Index) -> LazyPrefixWhileSequence<Base>.Index
typealias SubSequence = Slice<LazyPrefixWhileCollection<Base>>