Range projection: equivalent of LINQ select in D? -
is there linq select in d?
i want remove container elements contained in member of objects in given array. thought nice if do:
mycontainer.remove( myarray.select!( => a.member ) ) ;
it called map
:
import std.algorithm; mycontainer.remove(myarray.map!(a => a.member));
Comments
Post a Comment