Re:Why it’s hard for programmers to write a program to flatt...
by scarface74 on Friday February 24, 2017 @03:32PM
(#13727613)
Yes. Something like:
List<List<Blah>> records;
We would send a request off to multiple services, wait for all the responses and then the front end would sometimes need all of the lists and other times need it flatten.
How would I do it?
var allitems = records.SelectMany(b => b).ToList();
List<List<Blah>> records;
We would send a request off to multiple services, wait for all the responses and then the front end would sometimes need all of the lists and other times need it flatten.
How would I do it?
var allitems = records.SelectMany(b => b).ToList();