[Haskell-cafe] Fw: I have a problem
cetintozkoparan at yahoo.com
Thu Apr 24 05:29:05 EDT 2008
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
function type as follows:
sublist:: [a] -> [a] ->
For instance [2,4,5]list is sub list of [3,7,2,4,5,9] list but not of[3,7,4,2,5,9] list.
sublist [5,4] [1,4,5,7,8,3,5,4]
sublist [1,2,4,3,4,5,7,8,9,5] [8,2,3,1,2,4,3,4,5,7,8,9,5,1,6,2]
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe