Skip to content

Instantly share code, notes, and snippets.

Mihai Pantea panteamihai

  • Cluj-Napoca
View GitHub Profile
@panteamihai
panteamihai / LazyAndEager.cs
Created Jun 12, 2018
Lazy evaluation in action with generators, and eager evaluation with lists (from Intro to RX)
View LazyAndEager.cs
public static void HotIsEager_ColdIsLazy_InTheEnumerableObservableDuality()
{
void ReadFirstValue(IEnumerable<int> list)
{
foreach (var i in list)
{
Console.WriteLine("Read out first value of {0}", i);
break;
}
}
You can’t perform that action at this time.