[Haskell-cafe] words function

Ryan Bloor ryanbloor at hotmail.com
Thu Nov 8 04:59:39 EST 2007

I am trying to create a function that uses the words function... I am doing the same thing to each element in a list so I am using mapping techniques.
 --Define the main first function rStrings2Results :: ([String] -> String) -> [[String]] -> [String] rStrings2Results f(head:tail) = (f head : rStrings2Results f tail)
I just want take a list and on the first member ("hello my name is ryan") to say [("hello", "my", "name", "is", "ryan"),..............] using the words function.
100’s of Music vouchers to be won with MSN Music
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20071108/628c7ce2/attachment.htm

More information about the Haskell-Cafe mailing list