<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))                 ==> a
(getNth 3 '(a b c d e))         ==> d
(getNth 3 '(a b c))                 ==> error</pre>
</div>
<div><br>
</div>
<div>so far I have </div>
<div><br>
</div>
<div>
<div>(define getNth (lambda (N LS)</div>
<div> (if (eq? N 0)(car LS)</div>
</div>
<div><br>
</div>
<div>which only includes the "base case". I need help on how to create this function. Any ideas?</div>
</div>
</body>
</html>