diff --git a/prototype/Doubt/Cofree.swift b/prototype/Doubt/Cofree.swift index 6ec780837..8e9b89325 100644 --- a/prototype/Doubt/Cofree.swift +++ b/prototype/Doubt/Cofree.swift @@ -2,6 +2,13 @@ public enum Cofree { indirect case Unroll(B, Syntax) + + public var unwrap: Syntax { + switch self { + case let .Unroll(_, rest): + return rest + } + } }