aboutsummaryrefslogtreecommitdiff
path: root/challenge-059/simon-proctor
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-059/simon-proctor')
-rw-r--r--challenge-059/simon-proctor/raku/ch-2.raku2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-059/simon-proctor/raku/ch-2.raku b/challenge-059/simon-proctor/raku/ch-2.raku
index 224906b720..4ed143b303 100644
--- a/challenge-059/simon-proctor/raku/ch-2.raku
+++ b/challenge-059/simon-proctor/raku/ch-2.raku
@@ -3,7 +3,7 @@
use v6;
multi sub bit-diff( UInt $a, UInt $b where $a >= $b ) {
- [+] ($a.base(2).comb.reverse Z (|$b.base(2).comb.reverse, |(lazy gather { take 0 }) ) ).map( { abs( $^a[0] - $^a[1] ) } );
+ [+] ($a +^ $b).base(2).comb;
}
multi sub bit-diff( UInt $a, UInt $b ) { bit-diff( $b, $a ) }