Sha256: a66968bdafe607f023051c37ed28c933b54fd029eaa03e014967c1e4effc0539
Contents?: true
Size: 359 Bytes
Versions: 396
Compression:
Stored size: 359 Bytes
Contents
(define-module (hamming) #:export (hamming-distance)) (define hamming-distance (lambda (dna1 dna2) (if (eqv? (string-length dna1) (string-length dna2)) (length (filter not (map char=? (string->list dna1) (string->list dna2)))) (error "String length mismatch."))))
Version data entries
396 entries across 396 versions & 1 rubygems