aboutsummaryrefslogtreecommitdiff
path: root/challenge-056
diff options
context:
space:
mode:
authorMarkus "Holli" Holzer <holli.holzer@gmail.com>2020-04-19 22:27:50 +0200
committerMarkus "Holli" Holzer <holli.holzer@gmail.com>2020-04-19 22:27:50 +0200
commit22599fe1c6693c23fb9b2a141c929647a7c7b961 (patch)
treec47157fdc3b4f7aaa3dc38a2e7ee63bae56dfcae /challenge-056
parent36994c04e6bfacc633500fe54e582e85c401df42 (diff)
downloadperlweeklychallenge-club-22599fe1c6693c23fb9b2a141c929647a7c7b961.tar.gz
perlweeklychallenge-club-22599fe1c6693c23fb9b2a141c929647a7c7b961.tar.bz2
perlweeklychallenge-club-22599fe1c6693c23fb9b2a141c929647a7c7b961.zip
arrgh!
Diffstat (limited to 'challenge-056')
-rw-r--r--challenge-056/markus-holzer/raku/ch-1.p62
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-056/markus-holzer/raku/ch-1.p6 b/challenge-056/markus-holzer/raku/ch-1.p6
index 8bcf267486..ddd918eb4d 100644
--- a/challenge-056/markus-holzer/raku/ch-1.p6
+++ b/challenge-056/markus-holzer/raku/ch-1.p6
@@ -5,6 +5,6 @@ sub MAIN( UInt $k, *@N )
.say for ( @N>>.UInt )
.pairs
.combinations(2)
- .grep( abs( [-] *>>.value ) == $k )
+ .grep({ .[1].value - .[0].value == $k })
.map( *>>.key );
}