Y
Hacker News
new
|
ask
|
show
|
jobs
by
dthul
2258 days ago
For people coming from a functional programming background, `fold` might be the superior name. But setting aside monads, `map_or` expresses the intent much better I find.
1 comments
saagarjha
2258 days ago
(I was being mostly sarcastic.)
link
dthul
2258 days ago
Rereading your comment I wonder how I could miss this!
link