Wrapper class that adds a valueAt
method to PartialFunction
, allowing
you to make statements like:
Wrapper class that adds a valueAt
method to PartialFunction
, allowing
you to make statements like:
pf.valueAt("VI") should equal (6)
Implicit conversion that adds a valueAt
method to PartialFunction
.
Implicit conversion that adds a valueAt
method to PartialFunction
.
the PartialFunction
on which to add the valueAt
method
Companion object that facilitates the importing of
PartialFunctionValues
members as an alternative to mixing it in. One use case is to importPartialFunctionValues
's members so you can use thevalueAt
method onPartialFunction
in the Scala interpreter: