A partial function of type PartialFunction[A, B] is a
unary function where the domain does not include all values of type
A. The function isDefinedAt allows to
test dynamically, if a value is in the domain of the function.