From f499375b61cd0dd5f90e73df9a9b69a7384c4c6c Mon Sep 17 00:00:00 2001 From: Simon Proctor Date: Mon, 14 Sep 2020 09:59:23 +0100 Subject: Check type --- challenge-078/simon-proctor/raku/ch-2.raku | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit