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