Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
augusto2112
· 5y ago · 0 comments
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.
Comments
[–]
samthecoy
5y ago
*not all inputs
[–]
augusto2112
OP
5y ago
Exactly, meant to say that :)