PFix is a partially defined fixpoint combinator.
The above "fixpoint combinator" means, PFix(h).toPartialFunction = h(PFix(h).toPartialFunction)
holds for any h
.
This implementation is efficient for combining multiple instances via orElse method.
- Companion
- object
Value members
Concrete methods
Returns a new instance combined with this and that instances.
Returns a new instance combined with this and that instances.
The result instance handles a value as using this
instance as possible.
If this instance cannot handle the value, then it tries to use that
instance instead.
Converts this into a total function.
Converts this into a total function.
The result function handles a value as using this instance as possible. If this instance cannot handle the value, then it passes to the fallback function.