Idea: swap with multiple arguments
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Tue May 24 11:51:32 PDT 2016
On 05/24/2016 02:48 PM, Xinok wrote:
> BTW, Phobos already has a function called bringToFront which can
> rotate/roll ranges but the interface is a bit different compared to
> other languages.
>
> https://dlang.org/phobos/std_algorithm_mutation.html#.bringToFront
This may be a misunderstanding. The original discussion was about
rotating a fixed and compile-time-known number of values, not a range.
-- Andrei
More information about the Digitalmars-d
mailing list