[Issue 12583] Allow user defined "retro" range
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 15 09:11:42 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12583
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schveiguy at yahoo.com
--- Comment #1 from Steven Schveighoffer <schveiguy at yahoo.com> ---
Fully agree with this.
In fact, retro could accept any type that supports .retro(), even non-ranges.
I wonder if foreach_reverse could be specialized to call this on bidirectional
ranges...
Note, this is a similar pattern to 'put', I wonder if there is a commonality
here we can extract into a "D design pattern".
--
More information about the Digitalmars-d-bugs
mailing list