mirror of
https://github.com/github/semantic.git
synced 2024-11-30 14:47:30 +03:00
16 lines
246 B
Swift
16 lines
246 B
Swift
protocol FixpointType {
|
|
typealias Algebra: AlgebraicType
|
|
init(_ algebra: Algebra)
|
|
var out: Algebra { get }
|
|
}
|
|
|
|
protocol AlgebraicType {
|
|
typealias Recur
|
|
}
|
|
|
|
extension FixpointType {
|
|
static func out(fix: Self) -> Algebra {
|
|
return fix.out
|
|
}
|
|
}
|