Settings

Theme

Self-assigning Method Call Syntax (C#)

twitter.com

2 points by ivankahl · 1 comment

Reader

1 thread
LandR

Would there be issues with IEnumerables deferred execution?

e.g.

    var xs = new List<int>{1, 2, 3, 4, 5};
    xs.Select(Inc)
      .Where(IsEven);
If I run that, nothing happens, neither Inc or IsEven is called... Its not until the results are realised that they will be called. If Select was writing back to xs, would this break?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection