Haskell.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview
thread

Help

Juan M. Duran

21 Feb 2002 21 Feb '02
8:32 p.m.

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!

0 0
Reply
Sign in to reply online Use email software

Back to the thread

Back to the list

HyperKitty Powered by HyperKitty version 1.3.9.