
20 Nov
2012
20 Nov
'12
7:16 p.m.
John Wiegley
writes:
swap :: (a,b) -> (b,a) swap = snd &&& fst
Fairly obvious, but strangely missing.
I'm sorry, I missed that this is already in Data.Tuple, as Hoogle does not find it. -- John Wiegley FP Complete Haskell tools, training and consulting http://fpcomplete.com johnw on #haskell/irc.freenode.net