[Haskell-cafe] changing out

Neil Mitchell ndmitchell at gmail.com
Tue May 30 17:09:28 EDT 2006


Hi,

> i want to change my input integers
>
> In> 23 98
> Out> 98 23

Can you explain what the bigger goal behind this is? It really depends
on exactly what you want to do, if you want a function that takes a
pair of integers and flips the pair, that's easy enough:

f (x,y) = (y,x)

But I guess you have a bigger purpose?

Thanks

Neil


More information about the Haskell-Cafe mailing list