1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 17:05:33 +03:00

Interpretation of .ByIndex algorithms.

This commit is contained in:
Rob Rix 2015-10-15 11:51:01 -04:00
parent 932bc44778
commit 53ea4fcf36

View File

@ -46,8 +46,8 @@ public struct Interpreter<Term: TermType> {
let patched = Set(a.keys).intersect(b.keys).map { ($0, run(a[$0]!, b[$0]!)) }
return recur(f(Dictionary(elements: deleted + inserted + patched)))
default:
return nil
case let .Roll(.ByIndex(a, b, f)):
return recur(f(SES(a, b, cost: cost, recur: recur)))
}
}