
24 Apr
2008
24 Apr
'08
8:07 a.m.
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'