Tag Archives: chaining

PartialFunction (Partially defined functions) In Scala

PartialFunction (Partially defined functions) In Scala A partial function is a unary function which is only defined for certain domain (i.e. input) values. They can be introduced anonymously. They can also be defined using PartialFunction trait. In order to understand partial functions, first introduce a type Student. It has three properties, id, sType and name… Continue reading »