Hacker News new | ask | show | jobs
by augusto2112 1959 days 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.
1 comments

*not all inputs
Exactly, meant to say that :)