[Haskell-cafe] How to break strings and put to a tuple

Pradeep Wickramanayake pradeep at talk.lk
Thu Mar 4 11:38:12 EST 2010


Hi,

 

sortList2 :: String -> String
sortList2 (x:xs) 
                | x == ',' = ""
                | otherwise = [x] ++ sortList2 xs

 

im breaking a one specific string and putting them to each word. But I need
to put them to a tuple. 

Can someone help me with the code

 

Please. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100304/97c636dd/attachment.html


More information about the Haskell-Cafe mailing list