Remove unused

This commit is contained in:
Aly 2018-12-01 21:23:16 -08:00
parent 30fad2d678
commit f1a35a8ab6
No known key found for this signature in database
GPG key ID: 555B7346639DDAC3

View file

@ -30,12 +30,4 @@ package object aoc {
go(as, Set.empty) go(as, Set.empty)
} }
def levenshtein(a: String, b: String): Int =
((0 to b.length).toList /: a)(
(prev, x) =>
(prev zip prev.tail zip b).scanLeft(prev.head + 1) {
case (h, ((d, v), y)) => Math.min(Math.min(h + 1, v + 1), d + (if (x == y) 0 else 1))
}
).last
} }