From b50ebdf21ab56d1dc734d8d9e542545b6f42f600 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Wed, 14 Oct 2015 10:22:04 -0400 Subject: [PATCH] Document `Cofree.extend()`. --- prototype/Doubt/Cofree.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/prototype/Doubt/Cofree.swift b/prototype/Doubt/Cofree.swift index f2a286112..c0b9439f4 100644 --- a/prototype/Doubt/Cofree.swift +++ b/prototype/Doubt/Cofree.swift @@ -37,6 +37,7 @@ extension Cofree { } } + /// Returns a new `Cofree` by recursively applying `transform` to each node, producing the annotations for the copy. public func extend(@noescape transform: Cofree -> Other) -> Cofree { return .Unroll(transform(self), unwrap.map { $0.extend(transform) }) }