aboutsummaryrefslogtreecommitdiff
path: root/challenge-086/arne-sommer/raku/pair-difference
blob: acc12343268c897d48abc19483b337e0954255e0 (plain)
1
2
3
4
5
#! /usr/bin/env raku

unit sub MAIN (Int $A, *@N where @N.elems >= 2 && all(@N) ~~ Int);

say + so any( @N.combinations(2).map({ abs([-] @$_) }) ) == $A;