Foreach/For loop alternative lambda function?
- by mamu
We use for or foreach to loop through collections and process each entries.
Is there any alternative in all those new lambda functions for collections in C#?
Traditional way of doing
foreach(var v in vs)
{
Console.write(v);
}
Is there anything like?
vs.foreach(v => console.write(v))