UnifiableType
public protocol UnifiableType
Instances of conforming types can be unified such that they represent to the same value.
-
Unifies
lhs
withrhs
, otherwise throws aUnificationError
.Declaration
Swift
static func unify(lhs: Self, _ rhs: Self) throws
-
Performs
action
as an operation onself
such that theself
preserves its initialglue
value if the operation fails.Declaration
Swift
static func attempt(value: Self, _ action: () throws -> ()) throws