Sha256: 8b8bd938075b01c037d82e70c20df1781aa02d7b7f3d9a9090c1fc455b5e4d75
Contents?: true
Size: 393 Bytes
Versions: 84
Compression:
Stored size: 393 Bytes
Contents
-module(dna). -export([hamming_distance/2]). hamming_distance(From, To) -> Comparisons = lists:zipwith(fun(X,Y) -> case X =:= Y of true -> 0; false -> 1 end end, From, To), lists:sum(Comparisons).
Version data entries
84 entries across 84 versions & 1 rubygems