From 50152385461a870b7375b7ba15b9396eb9bfac5d Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Wed, 14 Oct 2015 10:23:43 -0400 Subject: [PATCH] Document `Cofree.document()`. --- prototype/Doubt/Cofree.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/prototype/Doubt/Cofree.swift b/prototype/Doubt/Cofree.swift index c0b9439f4..b67823373 100644 --- a/prototype/Doubt/Cofree.swift +++ b/prototype/Doubt/Cofree.swift @@ -42,6 +42,7 @@ extension Cofree { return .Unroll(transform(self), unwrap.map { $0.extend(transform) }) } + /// Returns a new `Cofree` constructed by recursively annotating each subtree with itself. public var duplicate: Cofree> { return .Unroll(self, unwrap.map { $0.duplicate }) }