Initializerswift 6.0.1Swift
init(_:)
Creates a new sequence that wraps and forwards operations to base
.
init<S>(_ base: S) where Element == S.Element, S : Sequence
Other members in extension
Typealiases
Type members
init<I>(@escaping () -> I
) Creates a sequence whose
makeIterator()
method forwards tomakeUnderlyingIterator
.
Instance members
var underestimatedCount: Int
func drop(while: (Element) throws -> Bool
) rethrows -> AnySequence<Element> func dropFirst(Int
) -> AnySequence<Element> func dropLast(Int
) -> [Element] func filter((Element) throws -> Bool
) rethrows -> [Element] func forEach((Element) throws -> Void
) rethrows func makeIterator(
) -> AnySequence<Element>.Iterator func map<T, E>((Element)
throws func prefix(Int
) -> AnySequence<Element> func prefix(while: (Element) throws -> Bool
) rethrows -> [Element] func suffix(Int
) -> [Element]