On Mon Feb 27 04:39:38 2012, masak wrote: > <moritz> nom: sub increase-by-n($orig, $n) { ($orig, *.succ ... *)[$n] > }; say increase-by-n('a', 18) > <p6eval> nom 409db1: OUTPUT«s» > <masak> nom: sub increase-by-n($orig, $n) { ($orig ... *)[$n] }; say > increase-by-n('a', 18) > <p6eval> nom 409db1: OUTPUT«Decrement out of range [...] > <masak> decrement!? > <masak> nom: .say for (1 ... 100)[^10] > <p6eval> nom 409db1: OUTPUT«12345678910» > <masak> nom: .say for (1 ... *)[^10] > <p6eval> nom 409db1: OUTPUT«12345678910» > <masak> nom: .say for ("a" ... *)[^10] > <p6eval> nom 409db1: OUTPUT«Decrement out of range [...] > <masak> I call bug. > * moritz calls masak > * masak submits rakudobug
Works now. Closable with tests. -- Will "Coke" Coleda