tracks/perl6/exercises/hamming/Example.pm6 in trackler-2.2.1.95 vs tracks/perl6/exercises/hamming/Example.pm6 in trackler-2.2.1.96
- old
+ new
@@ -1,5 +1,5 @@
-unit module Hamming:ver<2>;
+unit module Hamming:ver<3>;
sub hamming-distance (
+@strands where { .elems == 2 && [==] $_».chars } --> Int:D
) is export {
sum [Zne] @strands».comb