OK, thank you.

S.
On 6/17/06, Neil Mitchell <[EMAIL PROTECTED]> wrote:
Hi

On 6/18/06, Sara Kenedy <[EMAIL PROTECTED]> wrote:
> Sorry, I am not clear at some point in your answer:
>
> 1) The function
> lex :: String -> [(String,String)]
> and
> filter :: (a -> Bool) -> [a] -> [a]
> So, I did not see how filter can use the list of tuple string of lex.

You can write a function lexList, of type String -> [String], by
repeatedly calling lex - its not too hard. Once you have this the
filter will work.

Thanks

Neil

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to