Initializer

init(_:)

Creates an AnyRandomAccessCollection having the same underlying collection as other. AnyRandomAccessCollectionを作成します、otherと同じ基盤コレクションを持っています。

Declaration 宣言

init?(_ other: AnyBidirectionalCollection<Element>)

Discussion 解説

If the underlying collection stored by other does not satisfy RandomAccessCollection, the result is nil. otherによって格納される基礎をなすコレクションがRandomAccessCollectionの条件を満たさないならば、結果はnilです。

Complexity: O(1) 計算量:O(1)