aboutsummaryrefslogtreecommitdiff
path: root/challenge-074
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-074')
-rw-r--r--challenge-074/luca-ferrari/raku/ch-2.p65
1 files changed, 2 insertions, 3 deletions
diff --git a/challenge-074/luca-ferrari/raku/ch-2.p6 b/challenge-074/luca-ferrari/raku/ch-2.p6
index 2c0da8f0ea..0ce2abe239 100644
--- a/challenge-074/luca-ferrari/raku/ch-2.p6
+++ b/challenge-074/luca-ferrari/raku/ch-2.p6
@@ -23,9 +23,8 @@ sub MAIN( Str $S where { $S.chars > 2 } ) {
%counting{ $_ }++ for $S.substr( 0 .. $index ).comb( '', :skip-empty );
my $fnr = $S.substr( 0 .. $index )
.comb( '', :skip-empty )
- .reverse
- .grep( { %counting{ $_ }:exists && %counting{ $_ } == 1 } )
- .first // '#';
+ .first( { %counting{ $_ }:exists && %counting{ $_ } == 1 } )
+ // '#';
@result.push: $fnr;
}