February 02, 2014 [Issue 6110] std.functional: unaryFun should take an array alias. | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=6110 Peter Alexander <peter.alexander.au@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |peter.alexander.au@gmail.co | |m --- Comment #1 from Peter Alexander <peter.alexander.au@gmail.com> 2014-02-02 10:24:21 PST --- I think this was before lambdas. Do you still think this is necessary now that you can write: filter!(a => bbb[a]) ??? -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
February 02, 2014 [Issue 6110] std.functional: unaryFun should take an array alias. | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=6110 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs@eml.cc --- Comment #2 from bearophile_hugs@eml.cc 2014-02-02 10:49:08 PST --- (In reply to comment #1) > I think this was before lambdas. Do you still think this is necessary now that you can write: > > filter!(a => bbb[a]) > > ??? I think the enhancement request by Timon is still a nice thing to ask. Using arrays and associative arrays as functions for the higher order functions is handy, and it's done often in the Clojure language. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation