Instance Subscriptswift 6.0.1Swift
subscript(_:)
subscript(bounds: Range<AnyBidirectionalCollection<Element>.Index>) -> AnyBidirectionalCollection<Element>.SubSequence { get }
Other members in extension
Typealiases
Type members
init(AnyBidirectionalCollection<Element>
) Creates an
AnyBidirectionalCollection
having the same underlying collection asother
.init?(AnyCollection<Element>
) Creates an
AnyBidirectionalCollection
having the same underlying collection asother
.init<C>(C
) Creates a type-erased collection that wraps the given collection.
init<C>(C
) Creates a type-erased collection that wraps the given collection.
init(AnyRandomAccessCollection<Element>
) Creates an
AnyBidirectionalCollection
having the same underlying collection asother
.
Instance members
var count: Int
The number of elements.
var endIndex: AnyBidirectionalCollection<Element>.Index
The collection’s “past the end” position—that is, the position one greater than the last valid subscript argument.
var startIndex: AnyBidirectionalCollection<Element>.Index
The position of the first element in a non-empty collection.
var underestimatedCount: Int
subscript(AnyBidirectionalCollection<Element>.Index
) -> Element Accesses the element indicated by
position
.func distance(from: AnyBidirectionalCollection<Element>.Index, to: AnyBidirectionalCollection<Element>.Index
) -> Int func drop(while: (Element) throws -> Bool
) rethrows -> AnyBidirectionalCollection<Element> func dropFirst(Int
) -> AnyBidirectionalCollection<Element> func dropLast(Int
) -> AnyBidirectionalCollection<Element> func filter((Element) throws -> Bool
) rethrows -> [Element] func forEach((Element) throws -> Void
) rethrows func formIndex(inout AnyBidirectionalCollection<Element>.Index, offsetBy: Int
) func formIndex(inout AnyBidirectionalCollection<Element>.Index, offsetBy: Int, limitedBy: AnyBidirectionalCollection<Element>.Index
) -> Bool func formIndex(after: inout AnyBidirectionalCollection<Element>.Index
) func formIndex(before: inout AnyBidirectionalCollection<Element>.Index
) func index(AnyBidirectionalCollection<Element>.Index, offsetBy: Int
) -> AnyBidirectionalCollection<Element>.Index func index(AnyBidirectionalCollection<Element>.Index, offsetBy: Int, limitedBy: AnyBidirectionalCollection<Element>.Index
) -> AnyBidirectionalCollection<Element>.Index? func index(after: AnyBidirectionalCollection<Element>.Index
) -> AnyBidirectionalCollection<Element>.Index func index(before: AnyBidirectionalCollection<Element>.Index
) -> AnyBidirectionalCollection<Element>.Index func makeIterator(
) -> AnyBidirectionalCollection<Element>.Iterator Returns an iterator over the elements of this collection.
func map<T, E>((Element)
throws func prefix(Int
) -> AnyBidirectionalCollection<Element> func prefix(while: (Element) throws -> Bool
) rethrows -> AnyBidirectionalCollection<Element> func suffix(Int
) -> AnyBidirectionalCollection<Element>