diff options
| -rw-r--r-- | challenge-078/simon-proctor/raku/ch-2.raku | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-078/simon-proctor/raku/ch-2.raku b/challenge-078/simon-proctor/raku/ch-2.raku index c2b3a10ffe..2829c53442 100644 --- a/challenge-078/simon-proctor/raku/ch-2.raku +++ b/challenge-078/simon-proctor/raku/ch-2.raku @@ -7,7 +7,7 @@ my %*SUB-MAIN-OPTS = :named-anywhere; sub MAIN ( *@values where { $_.elems > 0 }, #= List to rotate # There's a weird Emacs Raku mode bug with < hence <= elems-1 - :p(:@pivots)! where { .all <= @values.elems-1 }, #= List of values to rotate + :p(:@pivots)! where { .all ~~ UInt && .all <= @values.elems-1 }, #= List of values to rotate ) { for @pivots -> $p { [ |@values[$p..*], |@values[0..^$p] ].say |
