Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
private static void SelectManyDemo(List<Order> orders)
var firstOrder = orders.Take(1);
var lastOrder = orders.TakeLast(1);
var firstAndLastOrders = new [] {firstOrder, lastOrder}.SelectMany(order => order);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment