Hacker News new | ask | show | jobs
by scarface74 3402 days ago
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();