Better idea for double list comprehension?

bearophile bearophileHUGS at lycos.com
Sat Jan 18 14:35:43 PST 2014


> units[s] = unitlist.filter!(x => any!(y => (s == y)));

And you don't need a pair of ( ):

units[s] = unitlist.filter!(x => any!(y => s == y));

And now you need to feed any with some range.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list