Comment on Real quick question about the "break"

<- View Parent
m_r_butts@kbin.social ⁨11⁩ ⁨months⁩ ago

Fine:

var enumerable = Enumerable.Range(0, 100)
    .Where(i => i % 2 != 0)
    .TakeWhile(i => i < JUST_THE_WORST_NUMBER);
foreach (int i in enumerable)
{
    Console.WriteLine(i);
}

source
Sort:hotnewtop