<DIV>Thanks guys for all your help, finally through code, sweat and tears i have found the solution;</DIV>
<DIV> </DIV>
<DIV>isSubStrand:: String -> String -> Bool<BR>isSubStrand [] [] = True<BR>isSubStrand [] (y:ys) = False<BR>isSubStrand (x:xs) [] = False<BR>isSubStrand (x:xs) (y:ys)<BR> | length(x:xs)>length(y:ys) = False<BR> | take (length (x:xs)) (y:ys)==(x:xs) = True<BR> | otherwise = isSubStrand (x:xs) ys<BR></DIV>
<DIV>thanks again</DIV>
<DIV>Peter Stranney</DIV>
<DIV> </DIV>
<DIV><BR><B><I>Ketil Malde <ketil+haskell@ii.uib.no></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Remi Turk <RTURK@SCIENCE.UVA.NL>writes:<BR><BR>> You might also want to look at the earlier `any prefix of tails'<BR>> suggestion, as it makes the solution a rather simple one-liner.<BR><BR>Wouldn't that be looking for a sub*string*, and not a (general)<BR>sub*sequence* (which I think does not have to be contigous?)<BR><BR>-kzm<BR>-- <BR>If I haven't seen further, it is by standing in the footprints of giants<BR></BLOCKQUOTE><BR><BR><DIV>
<DIV>
<P><FONT face=courier><STRONG>Peter Stranney<IMG src="http://us.i1.yimg.com/us.yimg.com/i/mesg/tsmileys2/04.gif"></STRONG></FONT></P></DIV></DIV><p>
                <hr size=1>Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/mail_us/taglines/security/*http://promotions.yahoo.com/new_mail/static/protection.html">Yahoo! Mail</a> - You care about security. So do we.