Sha256: 6b772d1cbb7e54555cc3cbc248845092fefbf11f116391b8f415aac1664801a8
Contents?: true
Size: 186 Bytes
Versions: 63
Compression:
Stored size: 186 Bytes
Contents
class Error() {} Integer|Error distance(String s1, String s2) { if (s1.size != s2.size) { return Error(); } return zipPairs(s1, s2).count(([c1, c2]) => c1 != c2); }
Version data entries
63 entries across 63 versions & 1 rubygems