Help

Juan M. Duran juan@inf.ufpr.br
Thu, 21 Feb 2002 17:32:56 -0300 (BRT)


Hi, I need to parse a string to a list of integer, like this:

"12 32\n15...."

to

[12,32,15...]

f :: String -> [Int]

What I=B4ve found is the function "words" which does=20

words :: String -> [String]

it is in the Prelude.hs

then if I have something like "12 32\n15..." with words I get
["12","32","15"...]

which is cool but not exactly what I need. Would you help me?

Thanks

J.

------------------------------------
Porque la =FAnica lucha que se pierde, es la que se abandona,
=A1Ni un paso atr=E1s!