Sha256: 1aecffb8f33129365766df99e2305ccbc39bae8a39c17d6ae605a5dfac804db4
Contents?: true
Size: 252 Bytes
Versions: 68
Compression:
Stored size: 252 Bytes
Contents
open Base type nucleotide = A | C | G | T let equal (x,y) = match (x, y) with | (A, A) -> true | (C, C) -> true | (G, G) -> true | (T, T) -> true | _ -> false let hamming_distance a b = List.zip a b |> Option.map ~f:(List.count ~f:(Fn.non equal))
Version data entries
68 entries across 68 versions & 1 rubygems