Sha256: 175085abad01167e576cf2d1692adb2fbdd293f4c83faafa6dcfc8abe9793b88
Contents?: true
Size: 296 Bytes
Versions: 124
Compression:
Stored size: 296 Bytes
Contents
module Hamming let distance (strand1:string) (strand2:string) = if (strand1.Length <> strand2.Length) then None else Array.zip (strand1.ToCharArray()) (strand2.ToCharArray()) |> Array.filter (fun (c1, c2) -> c1 <> c2) |> Array.length |> Some
Version data entries
124 entries across 124 versions & 1 rubygems