StructureSwift

    LazyPrefixWhileSequence

    A sequence whose elements consist of the initial consecutive elements of some base sequence that satisfy a given predicate.

    @frozen struct LazyPrefixWhileSequence<Base> where Base : Sequence

    Overview

    Members

    Typealiases

    • typealias Element

      A type representing the sequence’s elements.

    • typealias Elements

      A Sequence that can contain the same elements as this one, possibly with a simpler type.

    • typealias SubSequence

      A collection representing a contiguous subrange of this collection’s elements. The subsequence shares indices with the original collection.

    Instance Subscripts

    Instance Properties

    Instance Methods

    Structures

    • struct Index

      A position in a LazyPrefixWhileCollection or LazyPrefixWhileBidirectionalCollection instance.

    • struct Iterator

      An iterator over the initial elements traversed by a base iterator that satisfy a given predicate.

    Removed Members

    Instance Methods