News for hackers. Stuff that matters.
Re:Haskell: The Bad Parts, part 2 (2020) by augusto2112 on Tuesday February 09, 2021 @10:26AM (#26078519)
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.
Re:Haskell: The Bad Parts, part 2 (2020) by samthecoy on Tuesday February 09, 2021 @10:28AM (#26078548)
*not all inputs
Re:Haskell: The Bad Parts, part 2 (2020) by augusto2112 on Tuesday February 09, 2021 @05:38PM (#26083407)
Exactly, meant to say that :)