From 127c3b5d75e5d03047c2d1434abc8856260dc8a9 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Tue, 3 Nov 2015 11:26:48 -0500 Subject: [PATCH] Fuse Indexed equality in Syntax.equals. --- prototype/Doubt/Syntax.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prototype/Doubt/Syntax.swift b/prototype/Doubt/Syntax.swift index 4f1d3a95a..c91831124 100644 --- a/prototype/Doubt/Syntax.swift +++ b/prototype/Doubt/Syntax.swift @@ -91,7 +91,7 @@ extension Syntax { case let (.Leaf(l1), .Leaf(l2)): return leaf(l1, l2) case let (.Indexed(v1), .Indexed(v2)): - return v1.count == v2.count && zip(v1, v2).lazy.map(recur).reduce(true) { $0 && $1 } + return v1.count == v2.count && zip(v1, v2).reduce(true) { $0 && recur($1) } case let (.Fixed(v1), .Fixed(v2)): return v1.count == v2.count && zip(v1, v2).lazy.map(recur).reduce(true) { $0 && $1 } case let (.Keyed(d1), .Keyed(d2)):