mirror of
https://github.com/github/semantic.git
synced 2024-11-29 02:44:36 +03:00
Use the Introduce shorthand.
This commit is contained in:
parent
b194dede9a
commit
5f5a4739bf
@ -51,9 +51,9 @@ public struct Interpreter<Term: CofreeType> {
|
||||
case let (.Leaf, .Leaf(leaf)) where equal(a, b):
|
||||
return .Roll(annotations, .Leaf(leaf))
|
||||
case let (.Keyed(a), .Keyed(b)):
|
||||
algorithm = .Roll(.ByKey(a, b, Syntax.Keyed >>> curry(Diff.Roll)(annotations) >>> Algorithm.Pure))
|
||||
algorithm = .Roll(.ByKey(a, b, Syntax.Keyed >>> Diff.Introduce(annotations) >>> Algorithm.Pure))
|
||||
case let (.Indexed(a), .Indexed(b)):
|
||||
algorithm = .Roll(.ByIndex(a, b, Syntax.Indexed >>> curry(Diff.Roll)(annotations) >>> Algorithm.Pure))
|
||||
algorithm = .Roll(.ByIndex(a, b, Syntax.Indexed >>> Diff.Introduce(annotations) >>> Algorithm.Pure))
|
||||
default:
|
||||
algorithm = .Roll(.Recursive(a, b, Algorithm.Pure))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user