Y
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
samthecoy
1959 days ago
*not all inputs
link
augusto2112
1959 days ago
Exactly, meant to say that :)
link