Initializer

init(array:range:copyItems:)

Initializes a newly allocated set with the objects that are contained in the specified range of an array, optionally copying the items. 新しくアロケートされた集合を初期化します、ある配列の指定された範囲に含まれるオブジェクトを使います、任意に項目をコピーします。

Declaration 宣言

convenience init(array set: [Any], 
           range: NSRange, 
       copyItems flag: Bool)

Parameters パラメータ

array

An array of objects to add to the new set. 新しい集合に加える、いくつかのオブジェクトからなる配列。

If the same object appears more than once in array, it is represented only once in the returned ordered set. 同じオブジェクトが一度以上 array に現れるならば、それはただ一度だけこの返される順序集合において表されます。

range

The range of objects in array to add to the ordered set. 順序集合に加えることになるarrayの中のオブジェクトの範囲。

flag

If true the objects are copied to the ordered set; otherwise false. trueならばオブジェクトは順序集合にコピーされます;それ以外ではfalse

Return Value 戻り値

An initialized ordered set containing a uniqued collection of the objects contained in specified range of the the array. 配列の指定される範囲の中に含まれるオブジェクトからなる特有なもののコレクションを含んでいる、ある初期化された順序集合。

See Also 参照

Initializing an Ordered Set 順序集合を初期化する

Related Documentation 関連文書