Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Tainnor
6 months ago
|
parent
|
context
|
favorite
| on:
8 months of OCaml after 8 years of Haskell in prod...
That doesn't exactly give a good error message, though:
> strSum "10 20 x" Left "Prelude.read: no parse"
But yeah, I didn't remember "mapM". mapM f = sequence . fmap f, which is what I used.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: