<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Here is my solution to a modified version of DNAprefix from exercise
17.6.6. I feel like it *should* be able to be written more
clearly/simply but I can't think of the logic to make it work properly:<br>
<br>
<span class="Apple-style-span"
 style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;">Modify<span
 class="Apple-converted-space">&nbsp;</span><code class="scheme"
 style="color: rgb(165, 42, 42);"><span class="variable"
 style="color: navy;">DNAprefix</span></code><span
 class="Apple-converted-space">&nbsp;</span>so that it returns the first
item beyond the pattern in the search-string if the pattern is a proper
prefix of the search-string. If the lists do not match or if the
pattern is no shorter than the search-string, the modified function
should still return<span class="Apple-converted-space">&nbsp;</span><code
 class="scheme" style="color: rgb(165, 42, 42);">false</code>.
Similarly, if the lists are equally long and match, the result is still<span
 class="Apple-converted-space">&nbsp;</span><code class="scheme"
 style="color: rgb(165, 42, 42);">true</code>.<br>
<br>
[content removed from archive]
</span>
</body>
</html>