mwotton
Joined 18 years ago
Karma
68
Submissions
40
Member since
Oct 18
haskell, perl, shimweasel.com
View on Hacker NewsJoined 18 years ago
GPT 5.something got it in two prompts.
https://github.com/ocharles/Elasticsearch
it's not very principled, tbh. uses error etc rather than proper sum types for returning errors.
map f (h:t) = f h:map f t
map f [] = []
member x (h:t) = x == h || member x t
member _ [] = False
I think the only difference is that you can't match for equality directly in the pattern.