internal static IVectorCollection ForEach(IVectorCollection collection, VectorCollectionActionWithIndex action) { for (int i = 0; i < collection.Count; ++i) { action(i, collection[i]); } return(collection); }
/// <summary> /// コレクションに action を適用する. /// </summary> /// <param name="action"><see cref="VectorCollectionActionWithIndex"/>で規定されるアクション</param> /// <returns>適用後の自身への参照</returns> public IVectorCollection ForEach(VectorCollectionActionWithIndex action) { return CollectionImpl.ForEach(this, action); }
/// <summary> /// コレクションに action を適用する. /// </summary> /// <param name="action"><see cref="VectorCollectionActionWithIndex"/>で規定されるアクション</param> /// <returns>適用後の自身への参照</returns> public IVectorCollection ForEach(VectorCollectionActionWithIndex action) { return(CollectionImpl.ForEach(this, action)); }