Apr. 20th, 2008

The Mist

Apr. 20th, 2008 09:50 pm
andrewducker: (Offensive)
Thanks to the urging, and donation of AVI files, I just watched The Mist.

Which was pretty good, well made, tense and gripping.

And I hated the end.
very very vague spoilerage )
andrewducker: (obey the penguin)
Having finally gotten back to the stuff I was looking at a couple of weeks ago, I've now discovered that I can replace:
doggies.ForEach(
    dog => dog.Paws.ForEach(
        paw => paw.Claws.ForEach(
            claw => claw.Clip())));

with
var myClaws = from dog in doggies from paw in dog.Paws from claw in paw.Claws select claw;
foreach (Claw claw in myClaws)
{
    claw.Clip();
}

Sadly, LINQ doesn't seem to have any way of executing queries rather than returning result sets. But then it is Language INtegrate Query. I think that's about as simple as you can get. Although I could replace the foreach loop with
myClaws.ForEach(claw => claw.Clip());
if I really wanted to...

November 2025

S M T W T F S
       1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Nov. 29th, 2025 08:27 pm
Powered by Dreamwidth Studios