Hi,

 

Im having problems with sending a string to a tuple.

 

My string contains integers and strings

 

The whole string stay as (“test,dfdf”,3,”dfsf”)

 

sortList2 :: String -> String

sortList2 (x:xs)

                | x == ',' = ""

                | otherwise = [x] ++ sortList2 xs

 

The above function separating each words from the string

 

Now I need to put them to a tuple

 

putList :: String -> (Int, String, String, Int, Int)

putList (x:xs)

                                                |xs /="" = sortList2 ++ putList xs

 

 

I wrote something like above. But I really have no clue how to continue. Can someone help me. It’s a big help



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4924 (20100308) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com