Initializerswift 6.1.2Swift

init(_:)

Creates a type-erased collection that wraps the given collection.

init<C>(_ base: C) where Element == C.Element, C : BidirectionalCollection

Parameters

base

The collection to wrap.