[Issue 11555] std.algorithm.reverse should return the just-reversed range

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 11 15:40:15 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=11555

Andrei Alexandrescu <andrei at erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |preapproved

--- Comment #7 from Andrei Alexandrescu <andrei at erdani.com> ---
Retro changes the type and has a different charter. I think the current
placement is fine because reverse works on bidir ranges, not just arrays. Name
is in keeping with C++ and other languages.

Let's just have it return the reversed range, it helps with composition.

--


More information about the Digitalmars-d-bugs mailing list