final class PartialFunctionOps[A, B] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- PartialFunctionOps
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new PartialFunctionOps(pf: PartialFunction[A, B])
Value Members
- def applyNOpt(a: A): commons.NOpt[B]
- def applyOpt(a: A): commons.Opt[B]
- def fold[C](a: A)(forEmpty: (A) ⇒ C, forNonEmpty: (B) ⇒ C): C
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
unless(pre: PartialFunction[A, B]): PartialFunction[A, B]
The same thing as
orElse
but with arguments flipped.The same thing as
orElse
but with arguments flipped. Useful in situations whereorElse
would have to be called on a partial function literal, which does not work well with type inference.