1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 02:44:36 +03:00
semantic/prototype/Doubt/TermType.swift

16 lines
231 B
Swift
Raw Normal View History

2015-10-14 20:52:25 +03:00
/// The type of terms.
public protocol TermType {
typealias LeafType
var out: Syntax<Self, LeafType> { get }
}
2015-10-14 20:57:21 +03:00
extension Fix: TermType {}
2015-10-14 21:05:43 +03:00
extension Cofree: TermType {
public var out: Syntax<Cofree, A> {
return unwrap
}
}