aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScimon <simon.proctor@gmail.com>2024-01-08 10:11:42 +0000
committerScimon <simon.proctor@gmail.com>2024-01-08 10:11:42 +0000
commit9ba7d42d06bfcfa6762c442611c9d84a01a422ca (patch)
tree6c99a10e81ddfcfff95693921c120608086b4152
parent275425a6539c092ed817bba98f9bf3bf910f4897 (diff)
downloadperlweeklychallenge-club-9ba7d42d06bfcfa6762c442611c9d84a01a422ca.tar.gz
perlweeklychallenge-club-9ba7d42d06bfcfa6762c442611c9d84a01a422ca.tar.bz2
perlweeklychallenge-club-9ba7d42d06bfcfa6762c442611c9d84a01a422ca.zip
Challenge 251 (Small updateto part 2)
-rw-r--r--challenge-251/simon-proctor/raku/ch-2.raku4
1 files changed, 3 insertions, 1 deletions
diff --git a/challenge-251/simon-proctor/raku/ch-2.raku b/challenge-251/simon-proctor/raku/ch-2.raku
index e5f95f5216..17ae44be46 100644
--- a/challenge-251/simon-proctor/raku/ch-2.raku
+++ b/challenge-251/simon-proctor/raku/ch-2.raku
@@ -13,7 +13,9 @@ multi sub MAIN('test') {
multi sub MAIN(
Int $width, #= Matrix width
- *@vals where @vals.unique.elems == @vals.elems && all(@vals) ~~ IntStr, #= Matrix values
+ *@vals where @vals.unique.elems == @vals.elems #= Matrix values
+ && all(@vals) ~~ IntStr
+ && @vals.elems %% $width,
) {
my @matrix = @vals.rotor($width);
lucky(@matrix).say;