<DIV>Thanks guys for all your help, finally through code, sweat and tears&nbsp;i have found the solution;</DIV>
<DIV>&nbsp;</DIV>
<DIV>isSubStrand:: String -&gt; String -&gt; Bool<BR>isSubStrand [] [] = True<BR>isSubStrand [] (y:ys) = False<BR>isSubStrand (x:xs) [] = False<BR>isSubStrand (x:xs) (y:ys)<BR>&nbsp;&nbsp; | length(x:xs)&gt;length(y:ys) = False<BR>&nbsp;&nbsp; | take (length (x:xs)) (y:ys)==(x:xs) = True<BR>&nbsp;&nbsp; | otherwise = isSubStrand (x:xs) ys<BR></DIV>
<DIV>thanks again</DIV>
<DIV>Peter Stranney</DIV>
<DIV>&nbsp;</DIV>
<DIV><BR><B><I>Ketil Malde &lt;ketil+haskell@ii.uib.no&gt;</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>&gt; You might also want to look at the earlier `any prefix of tails'<BR>&gt; 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&nbsp;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.