diff --git a/prototype/Doubt/Free.swift b/prototype/Doubt/Free.swift index cb27ad644..5a956817a 100644 --- a/prototype/Doubt/Free.swift +++ b/prototype/Doubt/Free.swift @@ -92,8 +92,8 @@ extension Free where B: PatchConvertible, B.Info == A { public typealias Term = Fix public var before: Term? { - return map { $0.patch.state.before }.iterate { syntax -> Term? in - switch syntax { + return map { $0.patch.state.before }.iterate { + switch $0 { case let .Leaf(a): return .In(.Leaf(a)) case let .Indexed(a): @@ -105,8 +105,8 @@ extension Free where B: PatchConvertible, B.Info == A { } public var after: Term? { - return map { $0.patch.state.after }.iterate { syntax -> Term? in - switch syntax { + return map { $0.patch.state.after }.iterate { + switch $0 { case let .Leaf(a): return .In(.Leaf(a)) case let .Indexed(a):