New to std.algorithm and generics, no idea how to make simple things to work

newguy no.spam.please at sorry.org
Sat Mar 8 13:26:35 PST 2014


Ok, I got it working with

points.linearRemove(find!(p => p.x > 7)(points[]).take(1));

I thought takeOne would work and didn't thought of trying 
take(1), but I guess not. I also learned that containers don't 
accept filter results as a range so no problem, I can accept 
that. Still, feels quite complicated. I hope it's worth it in the 
long run :)


More information about the Digitalmars-d-learn mailing list