4 ms·
A partial function is a function where all inputs have an output. For example, calling head on an empty list will throw an exception. To make this a total funct
by augusto2112 6y ago
A partial function is a function where all inputs have an output. For example, calling head on an empty list will throw an exception. To make this a total function you’d need to return a Maybe instead.
- samthecoy 6y ago*not all inputs
- augusto2112 6y agoExactly, meant to say that :)