Generic Initializer

init(_:)

Creates a type-erased collection that wraps the given collection. 与えられたコレクションをラップする型消去コレクションを作成します。

Declaration 宣言

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

Parameters パラメータ

base

The collection to wrap. ラップされるコレクション。

Discussion 解説

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