Skip to content
Permalink
Browse files

Make min side of Range leading in deciding char incremento

Fixes R#2517
  • Loading branch information...
lizmat committed Dec 7, 2018
1 parent 07d95bf commit d92b155ccc9614ffc003b22041b2707a05574467
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/Range.pm6
@@ -149,12 +149,12 @@ my class Range is Cool does Iterable does Positional {
!! Rakudo::Iterator.SuccFromInf(
$!excludes-min ?? $!min.succ !! $!min
)
!! nqp::istype($!min,Str) && nqp::istype($!max,Str)
!! nqp::istype($!min,Str)
# we have a string range
?? $!min.chars == 1 && $!max.chars == 1
# we have (simple) char range
?? Rakudo::Iterator.CharFromTo(
$!min,$!max,$!excludes-min,$!excludes-max
$!min,$!max.Str,$!excludes-min,$!excludes-max
)
# generic string sequence
!! SEQUENCE(

0 comments on commit d92b155

Please sign in to comment.
You can’t perform that action at this time.