Sha256: a3a5b6e9d2450cf27c96dad2ebe4ec0e73b76bc83b3d19cfb9a5bbbcc26f7f2c

Contents?: true

Size: 180 Bytes

Versions: 396

Compression:

Stored size: 180 Bytes

Contents

(defmodule hamming
  (export (distance 2)))

(defun distance (strand-x strand-y)
  (lists:sum
    (lists:zipwith
      (lambda (x y) (if (=:= x y) 0 1))
      strand-x strand-y)))

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.179 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.178 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.177 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.176 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.175 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.174 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.173 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.172 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.171 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.170 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.169 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.167 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.166 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.165 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.164 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.163 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.162 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.161 tracks/lfe/exercises/hamming/src/example.lfe
trackler-2.2.1.160 tracks/lfe/exercises/hamming/src/example.lfe