BidirectionalCollection

E427892

BidirectionalCollection is a Swift standard library protocol for collections whose elements can be traversed efficiently in both forward and backward directions.

All labels observed (2)

How this entity was disambiguated

Statements (48)

Predicate Object
instanceOf Swift protocol ⓘ
collection protocol ⓘ
availableOnPlatform Linux (Swift) ⓘ
iOS ⓘ
macOS ⓘ
tvOS ⓘ
watchOS ⓘ
backwardTraversalComplexity O(1) per step ⓘ
conformingTypesMustSupport bidirectional index movement in O(1) time ⓘ
conformsTo Sequence (via Collection) ⓘ
definedInLanguage Swift ⓘ
designGoal provide efficient bidirectional traversal semantics ⓘ
documentationURL https://developer.apple.com/documentation/swift/bidirectionalcollection ⓘ
elementAccessComplexity O(1) ⓘ
extends Collection ⓘ
forwardTraversalComplexity O(1) per step ⓘ
hasAssociatedType Element ⓘ
Index ⓘ
hasSubProtocol RandomAccessCollection ⓘ
indexTypeMustConformTo Comparable ⓘ
introducedIn Swift 1.x era ⓘ
languageFeatureCategory Generics ⓘ
module Swift ⓘ
partOf Swift Standard Library ⓘ
primaryUse collections that can be traversed efficiently in both directions ⓘ
refinedFrom Collection protocol ⓘ
requiresIndicesToForm a finite range ⓘ
requiresMethod index(after:) ⓘ
index(before:) ⓘ
requiresProperty endIndex ⓘ
indices ⓘ
isEmpty ⓘ
startIndex ⓘ
requiresSubscript subscript(position: Index) -> Element ⓘ
requiresTraversalDirection backward ⓘ
forward ⓘ
superProtocol Collection ⓘ
supportsOperation backward index movement ⓘ
bidirectional for-in loops ⓘ
reverse iteration ⓘ
typicalConformingType Array ⓘ
ArraySlice ⓘ
ClosedRange ⓘ
ContiguousArray ⓘ
Range ⓘ
String ⓘ
Substring ⓘ
usedFor algorithms that need to traverse collections from the end ⓘ

How these facts were elicited

Referenced by (6)

Full triples — surface form annotated when it differs from this entity's canonical label.

Swift Standard Library → includesProtocol → BidirectionalCollection ⓘ
Sequence (Swift protocol) → superProtocolOf → BidirectionalCollection (Swift protocol) ⓘ
subject linked to: Sequence
linked to: BidirectionalCollection
RandomAccessCollection → conformsTo → BidirectionalCollection ⓘ
RandomAccessCollection → refines → BidirectionalCollection ⓘ
RandomAccessCollection → isSubtypeOf → BidirectionalCollection ⓘ