1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 11:02:26 +03:00

Remove here.

This commit is contained in:
Rob Rix 2015-10-06 11:55:55 -04:00
parent 84a1122ed7
commit d7c36a30c9

View File

@ -129,11 +129,10 @@ public enum FreeAlgorithm<A, B> {
let diagonal = matrix[i + 1, j + 1]
let diff = Diff.Pure(Patch.Replace(a[i], b[j]))
let here = (diff, 1)
if let right = right, down = down, diagonal = diagonal {
// nominate the best edge to continue along
return Stream.Cons(here, Memo(evaluated: .Nil))
return cons(diff, rest: Memo(evaluated: .Nil))
}
// right extent of the edit graph; can only move down