
I define and use swap (x, y) = (y, x) because do not find such in the standard library. Please, can people point at it, in the standard library, or at least in GHC? Thank you in advance for your help. ----------------- Serge Mechveliani mechvel@botik.ru

Hi Serge,
I define and use swap (x, y) = (y, x)
because do not find such in the standard library.
You can search for it in the standard libraries using Hoogle: http://haskell.org/hoogle/?q=(a,b)->(b,a)
Please, can people point at it, in the standard library, or at least in GHC?
And as it turns out, it isn't anywhere in the standard libraries. I think this would be a useful function to add to Data.Tuple, so feel free to propose it for addition. Thanks Neil

Hi Neil, Neil Mitchell wrote:
You can search for it in the standard libraries using Hoogle: [something mangled]
I think you were trying to suggest searching for "(a,b)->(b,a)" by using a URI directly. My mail reader justifiably mangled your proposed URI, as would any non-broken mail reader, since it included the illegal character '>'. See RFC 2396. You would have to use http://haskell.org/hoogle/?q=(a,b)-%3E(b,a) Easiest just to say: "Go to http://haskell.org/hoogle and search for (a,b)->(b,a)". Regards, Yitz
participants (3)
-
Neil Mitchell
-
Serge D. Mechveliani
-
Yitzchak Gale