<div dir="ltr">Hi,<br>(I'm using Dr Scheme version 4.2.2, with language R5RS, and the "Disallow redefining" is <b>not</b> checked.)<br><br>The following code works perfectly:<br><span style="font-family: courier new,monospace;">(define exp</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> (lambda (b e)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> (if (= e 0) 1</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> (* b (exp b (- e 1))))))</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">(exp 2 5)</span><br><br>However, when I include the line (#%require scheme/base), I get an error:<br>
<span style="font-family: courier new,monospace;">exp: expects 1 argument, given 2: 2 4</span><br><br>How is that possible?<br><br>Many thanks,<br>Yaron<br>
</div>