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

Also, can one maybe view updateWith as taking whereFn and returning a kind of lens?
No, I don't think so. How would that work?