I have some data that I need to break down based on some condition, i.e.:
var trues = from item in items where MyCondition(item, blah) select item; var falses = from item in items where !MyCondition(item, blah) select item;
Is there a cleaner way to do this in a single query and return both results so that I don't have to repeat myself (and finish iterating over the data twice) as above?
source share