The best lambda expression I ever saw
-
var someVar = someList.SelectMany(λ => λ);
In some cases, my signature will be longer than my message...
<em style="color:red"> <b>ProgramFOX</b></em>
ProgramFOX
-
var someVar = someList.SelectMany(λ => λ);
In some cases, my signature will be longer than my message...
<em style="color:red"> <b>ProgramFOX</b></em>
ProgramFOX
:laugh: And the best part is that actually works!
Bob Dole
The internet is a great way to get on the net.
:doh: 2.0.82.7292 SP6a
-
var someVar = someList.SelectMany(λ => λ);
In some cases, my signature will be longer than my message...
<em style="color:red"> <b>ProgramFOX</b></em>
ProgramFOX
-
var someVar = someList.SelectMany(λ => λ);
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. -
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.
:doh: 2.0.82.7292 SP6a
-
Well that makes sense if someList is a list of objects which implement IEnumerable (like
List<List<int>>
. A bit weird but no horror.It's not even weird, if you want to flat a list of lists then that's the best way to do it.
-
var someVar = someList.SelectMany(λ => λ);
In some cases, my signature will be longer than my message...
<em style="color:red"> <b>ProgramFOX</b></em>
ProgramFOX
-
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.
-
var someVar = someList.SelectMany(λ => λ);
In some cases, my signature will be longer than my message...
<em style="color:red"> <b>ProgramFOX</b></em>
ProgramFOX
:omg:
CEO at: - Rafaga Systems - Para Facturas - Modern Components for the moment...
-
The great thing about C++ is: you can never be sure.
-
var someVar = someList.SelectMany(λ => λ);
In some cases, my signature will be longer than my message...
<em style="color:red"> <b>ProgramFOX</b></em>
ProgramFOX
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.
-
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.
:doh: 2.0.82.7292 SP6a