Sha256: f1c762dcadb01f11edc2dc5ec7f3bbc5937f4cf6e79b0142b82406a0d8a78ff0
Contents?: true
Size: 205 Bytes
Versions: 311
Compression:
Stored size: 205 Bytes
Contents
function distance(s1::AbstractString, s2::AbstractString) length(s1) != length(s2) && throw(ArgumentError("Sequences must have the same length")) reduce(+, 0, a != b for (a, b) in zip(s1, s2)) end
Version data entries
311 entries across 311 versions & 1 rubygems