cond

object PartialFunction {
  def cond[X](x: X)(pf: PartialFunction[X, Boolean]): Boolean
}

cond accepts the value x and creates an anonymous partial function that in turn accepts the partial function pf, applies it to x and returns the same value that pf does.

If pf is not defined for the input value x then the anonymous function returns false.