<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">I need to make a function that finds the nth term of a list
<div>Hence (getNth N LS)</div>
<div><br>
</div>
<div>
<pre style="word-wrap: break-word; white-space: pre-wrap; ">Examples of use:
(getNth 0 '(a b c))                 ==&gt; a
(getNth 3 '(a b c d e))         ==&gt; d
(getNth 3 '(a b c))                 ==&gt; error</pre>
</div>
<div><br>
</div>
<div>so far I have&nbsp;</div>
<div><br>
</div>
<div>
<div>(define getNth (lambda (N LS)</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(if (eq? N 0)(car LS)</div>
</div>
<div><br>
</div>
<div>which only includes the &quot;base case&quot;. I need help on how to create this function. Any ideas?</div>
</div>
</body>
</html>