[Haskell-cafe] Subsequence

Peter Stranney peterstranney at yahoo.co.uk
Sun Oct 17 09:29:24 EDT 2004

I am stuck on an exercise in a haskell book (the craft of functional programming) chapter 7 exercise 7.18 I have to write a function to check does one list occur as a subsequence of another, i am having real difficulty trying to do this. I have a method which will tell me if one character occurs in the list but it won't work for a list of characters. the function should look like isSubsequence :: [chars] -> [chars] -> boolean
any help on this, even a polymorphic type function would be greatly appreciated
Thank you
Peter Stranney

Peter Stranney

Do you Yahoo!?
vote.yahoo.com - Register online to vote today!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org//pipermail/haskell-cafe/attachments/20041017/194c8533/attachment.htm

More information about the Haskell-Cafe mailing list