Contents

init(_:)

Creates an AnyRandomAccessCollection having the same underlying collection as other.

Declaration

init?(_ other: AnyCollection<Element>)

Discussion

If the underlying collection stored by other does not satisfy RandomAccessCollection, the result is nil.