exercism-ocaml/hamming/hamming.mli

7 lines
187 B
OCaml
Raw Permalink Normal View History

2024-01-13 13:17:01 +01:00
open Base
type nucleotide = A | C | G | T
(** Compute the hamming distance between the two lists. *)
val hamming_distance : nucleotide list -> nucleotide list -> (int, string) Result.t