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´ve found is the function "words" which does 

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 única lucha que se pierde, es la que se abandona,
ˇNi un paso atrás!


_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to