Hacker News new | ask | show | jobs
by oats 1574 days ago
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.