diff options
| author | Mark <53903062+andemark@users.noreply.github.com> | 2023-06-06 01:27:59 +0000 |
|---|---|---|
| committer | Mark <53903062+andemark@users.noreply.github.com> | 2023-06-06 01:27:59 +0000 |
| commit | 7798f536121ed5bcba1fd8c9e0b145b3a605e04a (patch) | |
| tree | 4b127210ddb689e3013485b3d3e41bda7e6cea56 /challenge-220 | |
| parent | 4637bbd0b0f53074ffed0d9c5ebba1001d70b042 (diff) | |
| download | perlweeklychallenge-club-7798f536121ed5bcba1fd8c9e0b145b3a605e04a.tar.gz perlweeklychallenge-club-7798f536121ed5bcba1fd8c9e0b145b3a605e04a.tar.bz2 perlweeklychallenge-club-7798f536121ed5bcba1fd8c9e0b145b3a605e04a.zip | |
Challenge 220 Solutions (Raku)
Diffstat (limited to 'challenge-220')
| -rw-r--r-- | challenge-220/mark-anderson/raku/ch-2.raku | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/challenge-220/mark-anderson/raku/ch-2.raku b/challenge-220/mark-anderson/raku/ch-2.raku index 53841bcf10..99b1091536 100644 --- a/challenge-220/mark-anderson/raku/ch-2.raku +++ b/challenge-220/mark-anderson/raku/ch-2.raku @@ -7,7 +7,7 @@ is-deeply squareful(2, 2, 2), ((2, 2, 2),); sub squareful(+@a) { @a.permutations.unique(with => &[eqv]) - .grep({ all(.rotor(2 => -1)).sum.sqrt.narrow ~~ UInt }); + .grep({ all(.rotor(2 => -1)).sum.sqrt.narrow ~~ UInt }) } =begin alternate @@ -18,6 +18,6 @@ sub squareful(+@a) my $squares := (0..$s Z* 0..$s).List; @a.permutations.unique(with => &[eqv]) - .grep({ .rotor(2 => -1)>>.sum (<=) $squares }); + .grep({ .rotor(2 => -1)>>.sum (<=) $squares }) } =end alternate |
