Y
Hacker News
new
|
ask
|
show
|
jobs
by
lmm
1016 days ago
This feels recursion-schemesey. Something like:
para (\t -> let asIs = (map fst t) in if(whereFn(asIs)) updateFn(asIs) else map snd t)
1 comments
gdprrrr
1016 days ago
Also, can one maybe view updateWith as taking whereFn and returning a kind of lens?
link
lmm
1016 days ago
No, I don't think so. How would that work?
link