3 ms·
I think LINQ got this very nearly right. You can write this LINQ-style from child in node where child != null select process(child) or with extension meth
by gnud 11y ago
I think LINQ got this very nearly right.
You can write this LINQ-style
from child in node where child != null select process(child)
or with extension methods
node.Where(c => c != null).Select(process)