# New Ticket Created by  Aleks-Daniel Jakimenko-Aleksejev 
# Please include the string:  [perl #131018]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=131018 >


Code:
.say for <a b c d e f>.rotor(2 => -2, 1)


Result (2015.12..2016.12):
(a b)
(a)
(b c)
(b)
(c d)
(c)
(d e)
(d)
(e f)
(e)


Result (2017.01):
Rotorizing gap is out of range. Is: -2, should be in -1..^Inf; 
Ensure a negative gap is not larger than the length of the sublist
  in block <unit> at /tmp/uYWEuzId1z line 1


Result (2017.02,2017.03,HEAD(fbe7ace)):
(a b)



The first change happened in 
https://github.com/rakudo/rakudo/commit/d7b82149d31da04763f0d269f0e3e76f67efd5fe
Then it was brought back to life in 
https://github.com/rakudo/rakudo/commit/b9d9279a6d2aff68791b8085d8e09678886026bb

Previous behavior (2015.12-ish) is what I expect to happen. It is consistent 
with behavior observed in other cases, for example:

Code:
.say for <a b c d e f>.rotor(2 => -1, 1)

Result:
(a b)
(b)
(c d)
(d)
(e f)
(f)

Reply via email to