Sha256: a2810da81ce3fa6b57037cf56ebbd248d7759a6e349c9c6c2e2651c95d6af163

Contents?: true

Size: 198 Bytes

Versions: 272

Compression:

Stored size: 198 Bytes

Contents

module Hamming

let compute (strand1:string) (strand2:string) = 
    Array.zip (strand1.ToCharArray()) (strand2.ToCharArray()) 
    |> Array.filter (fun (c1, c2) -> c1 <> c2) 
    |> Array.length

Version data entries

272 entries across 272 versions & 1 rubygems

Version Path
trackler-2.2.1.54 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.53 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.52 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.51 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.50 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.49 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.48 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.47 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.46 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.45 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.44 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.43 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.42 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.41 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.40 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.39 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.38 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.37 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.36 tracks/fsharp/exercises/hamming/Example.fs
trackler-2.2.1.35 tracks/fsharp/exercises/hamming/Example.fs