1
1
mirror of https://github.com/github/semantic.git synced 2024-11-30 14:47:30 +03:00
semantic/Doubt/FixpointType.swift
2015-07-18 15:43:49 -04:00

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