Sha256: 1d156c83068dc808fd96cfe44d21cdc05d64f9a4897732349fb3a78379071223
Contents?: true
Size: 439 Bytes
Versions: 187
Compression:
Stored size: 439 Bytes
Contents
-module(example). -export([hamming_distance/2, test_version/0]). 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). test_version() -> 1.
Version data entries
187 entries across 187 versions & 1 rubygems