[Haskell-cafe] Infix search (Was: I have a problem)
Henning Thielemann
lemming at henning-thielemann.de
Thu Apr 24 08:07:52 EDT 2008
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'
More information about the Haskell-Cafe
mailing list