Skip to content

Instantly share code, notes, and snippets.

Mihai Pantea panteamihai

  • Cluj-Napoca
Block or report user

Report or block panteamihai

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.