aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xchallenge-220/steve-g-lynn/raku/ch-2.p62
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-220/steve-g-lynn/raku/ch-2.p6 b/challenge-220/steve-g-lynn/raku/ch-2.p6
index edeea0a7ac..460d8e1204 100755
--- a/challenge-220/steve-g-lynn/raku/ch-2.p6
+++ b/challenge-220/steve-g-lynn/raku/ch-2.p6
@@ -9,7 +9,7 @@ multi sub is_perfect_square( @ints ) {
}
sub squareful (@ints where @ints.elems==3) {
- @ints.permutations.grep( {$_.&is_perfect_square} ).unique( :with(&[eqv]) );
+ @ints.permutations.unique( :with(&[eqv]) ).grep( {$_.&is_perfect_square} );
}
say &squareful((1,17,8)); #(1,8,17),(17,8,1)