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 }) }