1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 00:44:57 +03:00

Don’t test equality in SES.

This commit is contained in:
Rob Rix 2015-10-14 12:11:03 -04:00
parent 964204a3e6
commit da11e0983a

View File

@ -46,12 +46,6 @@ public func SES<A>(a: [Fix<A>], _ b: [Fix<A>], equals: (A, A) -> Bool, recur: (F
let down = matrix[i, j + 1]
let diagonal = matrix[i + 1, j + 1]
let recur = {
Term.equals(equals)($0, $1)
? Diff($1)
: recur($0, $1)
}
if let right = right, down = down, diagonal = diagonal {
// nominate the best edge to continue along
let (best, diff, _) = min(