1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 11:02:26 +03:00

Document Cofree.extract.

This commit is contained in:
Rob Rix 2015-10-14 10:19:38 -04:00
parent ab3d297d95
commit 7bff8f6f50

View File

@ -29,6 +29,7 @@ extension Cofree {
// MARK: - Comonad // MARK: - Comonad
extension Cofree { extension Cofree {
/// Returns the value annotating the syntax tree at this node.
public var extract: B { public var extract: B {
switch self { switch self {
case let .Unroll(b, _): case let .Unroll(b, _):