<div dir="ltr"><div><div><div><div>I'm trying to replace a function with another using parameterize.<br><br></div>For example, when I try:<br><br>(define (add2 n)<br> (add1 (add1 n)))<br><br>(parameterize ([add1 (ë [n] (+ n 2))])<br>
(add2 2))<br><br></div>I get an error:<br><br> parameterize: contract violation<br> expected: parameter?<br> received: #<procedure:add1><br><br></div>How do I re-bind functions in Racket?<br><br></div>- Cristian<br>
</div>