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