From d0aeedeb523b269cd4944cf4fd590fe05b8e7061 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Thu, 22 Oct 2015 17:15:49 -0400 Subject: [PATCH] Define `iterate` so as to clarify its relationship with `cata`. --- prototype/Doubt/Free.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prototype/Doubt/Free.swift b/prototype/Doubt/Free.swift index beac82e83..6a5d0c4aa 100644 --- a/prototype/Doubt/Free.swift +++ b/prototype/Doubt/Free.swift @@ -57,7 +57,7 @@ public enum Free: CustomDebugStringConvertible { public func iterate(transform: Syntax -> Value) -> Value { return analysis( ifPure: id, - ifRoll: { transform($0.map { $0.iterate(transform) }) }) + ifRoll: { $0.map { $0.iterate(transform) } } >>> transform) }