C++ C#

AddTo<T, C, V>(this Iterator, C, Func<T, bool>, Func<T, V>) Method

Class: IteratorHelpers

Calls predicate on each object of type T returned by the iterator. If it returns true calls delegate f on the object and adds the returned object of type V to a collection of type V objects

public C AddTo<T, C, V>(this Iterator iterator, C collection, Func<T, bool> predicate, Func<T, V> m)

Parameters

Type Name Description
this Iterator iterator
C collection
Func<T, bool> predicate
Func<T, V> m

Returns: C