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:
parent
932bc44778
commit
53ea4fcf36
@ -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)))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user