On Thu, 24 Apr 2008, cetin tozkoparan wrote:

I have a problem which i can'tsolve. Is there any one who has an idea?
Two lists is sent as parameter to
a function. If second list contains first list, return true, else
return false. This comparision must be in order of first list. You can look at
examples.

function type as follows:
sublist:: [a] -> [a] -> Bool

try 'List.tails' and 'List.isPrefixOf'
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to