Re:Failing in Haskell
by oats on Saturday February 26, 2022 @02:37PM
(#30481023)
Or pattern matching that takes account of the empty list case. Orrrrr using a fold! I usually find when I start matching on list values that the function could be better expressed with a fold instead.
[ Parent
| on HN ]
There are no comments on this comment yet.