Skip to content

Index elements correctly

[1,2,3][1..^*].say is (2 3), not (2), meaning that ^ in that case does nothing. It used to work because of a bug which was recently fixed¹. The right way to do it is to use *-2.

¹ – https://github.com/rakudo/rakudo/commit/35b69f074b9db3ffeb1638fc8a548fc2c0643d5a

Merge request reports