Iterate

Applies the given function to each element of the collection.

WARNING

This function causes IEnumerable<T> evaluation.

Parameters

Returns

Action<T> action

IEnumerable<T> source

void

Usage

Writing elements in console

//IEnumerable<string> source = { "Hello", " ", "Tango" }

source.Iterate( value => Console.Write(value) );

//"Hello Tango"

Last updated

Was this helpful?