aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--challenge-056/markus-holzer/raku/ch-1.p65
1 files changed, 3 insertions, 2 deletions
diff --git a/challenge-056/markus-holzer/raku/ch-1.p6 b/challenge-056/markus-holzer/raku/ch-1.p6
index ddd918eb4d..8a1bfc5846 100644
--- a/challenge-056/markus-holzer/raku/ch-1.p6
+++ b/challenge-056/markus-holzer/raku/ch-1.p6
@@ -5,6 +5,7 @@ sub MAIN( UInt $k, *@N )
.say for ( @N>>.UInt )
.pairs
.combinations(2)
- .grep({ .[1].value - .[0].value == $k })
- .map( *>>.key );
+ .grep( -> $tupel { $tupel[1].value - $tupel[0].value == $k } )
+ .map( -> $tupel { $tupel>>.key } )
+ ;
}