|
Marc, you probably know this by now, but let is just syntactic sugar for the Select method.
|
|
|
|
|
Haha, I have to say I dunno "how to replace let with extension method" so when I want to introduce a variable it's one case where I definitely use linq query syntax over chaining LINQ extension methods....
|
|
|
|
|
For a bit of background. LINQ facilitates functors and monads (concepts from functional programming). Simplified: functors are types that 'map' (Select), monads are types that 'bind' (SelectMany).
When you do 'from x in y' you're lifting the value out of the monad (get the value wrapped up *in* the monad), doing an operation on it, and then wrapping it back up in the monad. The monad in this case being IEnumerable/IQueryable.
There are other types, like Option<t>, Either<l,r>, Try<t> - see this library: [language-ext]
'let' is essentially the non-monadic assign, it's essentially exactly the same as declaring a local variable. It doesn't do the lifting, and therefore if you did 'let x = list', then it wouldn't extract the value from the list, it will just assign the list.
It's most useful in query expressions to pre-calculate a value that will be used many times in subsequent parts of the query; but it can very much allow full functional programming within LINQ expressions.
|
|
|
|
|
|
Quote: The agency has received 31 reports of people hospitalized due to the heart problems, including 10 deaths over the last 39 years.
But how many thousands are killed each year by Dupont, Monsanto...but that's OK because it's all in the name of profit and is acceptable collateral damage.
Sorry bout the rant in a really crappy mood this morning!
New version: WinHeist Version 2.2.2 Beta I told my psychiatrist that I was hearing voices in my head. He said you don't have a psychiatrist!
|
|
|
|
|
Mike Hankey wrote: collateral damage
"Colorectal" adjective could fit there, too.
You always obtain more by being rather polite and armed than polite only.
|
|
|
|
|
So - taking a lot of anti-diarrhea medication is suddenly news?
Damn it man - don't you know there's been a world-wide cult of such abusers for generations!
They're called "Politicians" and they're obviously full of sh . . .
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Politicians can't be overdosing on anti-diarrhea medications. Have you heard what comes out of their mouths?
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
And that's why they're always contradicting themselves:
So full of it that it spews out of their mouth for lack of space.
(A circle of life thing, in some way)
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Daniel Pfeffer wrote: Have you heard what comes out of their mouths?
The anti-diarrhoea medication only stops it coming out of the other end. Once it backs up far enough, there's only one exit it can use.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
That would indicate that something's wrong with their plumbing.
|
|
|
|
|
why are there 3 pictures of the FDA headquarters on this article?
|
|
|
|
|
Why "only in America"?
".45 ACP - because shooting twice is just silly" - JSOP, 2010
- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Perhaps since the warning comes from the FDA, the more accurate statement should be "only confirmed in America".
It could very well happen elsewhere, but establishing that is not the FDA's job.
|
|
|
|
|
Yeah. A lot of people have been using it because of videos like this.... Immodium ad to detox - Bing video[^]
If you've ever seen a heroine addict in withdrawal... It's horrible.
|
|
|
|
|
The natural remedies work much better:
-- Banana cures it
-- Cork prevents unwanted outcomes
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Even though it costs as much as a small car,
it's got this button with an airplane on it and when I press it, I can fly away to a place where nobody can reach me.
I guess that is why its called airplane mode.
I miss the days when these infernal devices didn't exist.
|
|
|
|
|
Has it got a mute button as well?
|
|
|
|
|
aaryan42 wrote: it's got this button with an airplane on it and when I press it, I can fly away to a place where nobody can reach me.
but "Find my iPhone" can still reach you
|
|
|
|
|
I already know where it is. In my pocket.
|
|
|
|
|
I was getting my hairs cut by this lady who has done this cutting for me for years. We were talking about tech and it's trappings. I said ya know, The horse must have been a real pita it it's last days, and while the car was far superior, certainly comes with a new set of problems not the least of which is who gets shotgun and will it do a burnout.
Onward and upward I suppose.
|
|
|
|
|
So you basically enjoy your device because it allows you to switch off all the features your paid an excruciating price for ? That's like buying a ferrari for its door locking mechanism.
|
|
|
|
|
cheek.insert(tongue);
mostly, but there are times when being permanently contactable is a horrible PITA.
[edit]
And I would never buy a Ferrari, door locking mechanisms notwithstanding.
Lamborghini's much cooler.
|
|
|
|
|
Because it can do the same and costs half
Rules for the FOSW ![ ^]
if(this.signature != "")
{
MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
}
else
{
MessageBox.Show("404-Signature not found");
}
|
|
|
|
|
Why not upgrade to the model I have and this becomes an automatic convenience?
It's an LG Flip Phone (US$20). Has power-off button, too - no need to upgrade.
aaryan42 wrote:
I miss the days when these infernal devices didn't exist. All you need to do is operate your vocalization orifice and tell people you don't:
TextTweetInstigramOtherwise bury you life on an undersized monitor
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|