[Haskell-cafe] changing out

2006-05-30 Thread Jenny678

hello,

i want to change my input integers

In 23 98
Out 98 23

I think its simple... sorry  my first steps in Haskell
thanks for solutions.
--
View this message in context: 
http://www.nabble.com/changing+out-t1707014.html#a4634189
Sent from the Haskell - Haskell-Cafe forum at Nabble.com.

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] changing out

2006-05-30 Thread Neil Mitchell

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
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe