Partial functions: I got this from here. It says that partial functions (not partial application) are functions that do not have a pattern match for all possible cases. An example is head. head does not have a case for [] and will throw an exception. Such functions should return an error using error.
Partial functions: I got this from here. It says that partial functions (not partial application) are functions that do not have a pattern match for all possible cases. An example is
head
.head
does not have a case for[]
and will throw an exception. Such functions should return an error usingerror
.