|
And the best part is that actually works!
Bob Dole The internet is a great way to get on the net.
2.0.82.7292 SP6a
|
|
|
|
|
|
Yes.
In some cases, my signature will be longer than my message...
<em style="color:red"> <b>ProgramFOX</b></em> ProgramFOX
|
|
|
|
|
Well that makes sense if someList is a list of objects which implement IEnumerable (like List<List<int>> . A bit weird but no horror.
|
|
|
|
|
Which is why this forum is called "The Weird and The Wonderful"!!
Bob Dole The internet is a great way to get on the net.
2.0.82.7292 SP6a
|
|
|
|
|
It's not even weird, if you want to flat a list of lists then that's the best way to do it.
|
|
|
|
|
I think one posted in the chatroom a coupla days ago had C++11...
[](){[](){}();}(); ... but I suspect he was trolling.
|
|
|
|
|
The great thing about C++ is: you can never be sure.
|
|
|
|
|
xD .. If i'm not mistaken, that is just an empty lambda nested inside another one ... I wonder if one could go on and on like that. -- But in the end it would do nothing (besides probably a stack overflow, if you take it too far^^)
|
|
|
|
|
|
I think I have to classify this as "wonderful", because it's honestly pretty common.
The simplest case of SelectMany is to flatten a "List of List of Objects" into a "List of Objects". And that's exactly what this lambda does.
I guess the "weird" here is that SelectMany is doing some extra magic merging the lists.
|
|
|
|
|
As well as the actual lambda Greek letter.
Bob Dole The internet is a great way to get on the net.
2.0.82.7292 SP6a
|
|
|
|
|
I hate it when people stand behind me in covert and watch my screen while I peacefully code. I loose my balance.. chemically
|
|
|
|
|
Read the top of this forum, don't think this post fits this.
|
|
|
|
|
it does state Coding Horrors, Worst Practices. well it is a horror.. while coding
|
|
|
|
|
"This forum is purely for amusement and discussions on code snippets."
True, however the last two words in the sentence above are the important ones.
|
|
|
|
|
I guess this explains why his manager thinks he needs to monitor what this guy's coding
|
|
|
|
|
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.
|
|
|
|
|
I guess I am glad I'm not his manager!
|
|
|
|
|
|
|
Jibesh V P
|
|
|
|
|
|
The solution to this problem is to install a trap door directly behind you where the supervisor always stands.
You then set audio, motion, and location in their appropriate places.
if( audio == null && motion == null && location == true)
{
trigger = true;
}else{
trigger = false;
}
End result, no more supervisor standing behind you while you code.
Heh, heh, I've lost more supervisors that way.
Now, back to reality.
|
|
|
|
|
hahaha.. ooh boy i really wish I could compile this code and run it.
|
|
|
|