Instance Methodswift 6.0.1Swift
forEach(_:)
func forEach(_ body: (Element) throws -> Void) rethrows
Other members in extension
Typealiases
Type members
init<S>(S
) Creates a new sequence that wraps and forwards operations to
base
.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 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]