diff --git a/prototype/Doubt/SES.swift b/prototype/Doubt/SES.swift index b6c76a570..d2f78b1e4 100644 --- a/prototype/Doubt/SES.swift +++ b/prototype/Doubt/SES.swift @@ -1,8 +1,7 @@ /// Computes the SES (shortest edit script), i.e. the shortest sequence of diffs (`Free>`) for two arrays of terms (`Fix`) which would suffice to transform `a` into `b`. /// /// This is computed w.r.t. an `equals` function, which computes the equality of leaf nodes within terms, and a `recur` function, which produces diffs representing matched-up terms. -public func SES(a: [Fix], _ b: [Fix], recur: (Fix, Fix) -> Free>>) -> [Free>>] { - typealias Term = Fix +public func SES(a: [Term], _ b: [Term], recur: (Term, Term) -> Free>) -> [Free>] { typealias Diff = Free> if a.isEmpty { return b.map { Diff.Pure(Patch.Insert($0)) } }