[Haskell-beginners] tuple update

Ovidiu Deac ovidiudeac at gmail.com
Fri Mar 9 20:07:24 CET 2012


Does anybody know if there are any functions like these in the Haskell
libray?

updateSnd f (x,y) -> (x, f y)

updateFst f (x,y) -> (f x, y)

Thanks,
ovidiu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20120309/6a3011ff/attachment.htm>


More information about the Beginners mailing list