[Request] A way to extract all instance of X from a range

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Mon Mar 14 01:04:18 PDT 2016


Right now, I'm repeating the following pattern many times :

range.map!(x => cast(Foo) x).filter!(x => x !is null)

Which is kind of annoying. Could we get something in phobos to do 
this ?



More information about the Digitalmars-d mailing list