Jump to content

Runtime evaluation/In an environment: Difference between revisions

m
that silly </lang foo> again
(New page: {{task}} Given a program in the language representing a function, evaluate it with the variable <var>x</var> (or another name if that is not valid) bound to a provided value, then evaluate...)
 
m (that silly </lang foo> again)
Line 17:
(eval-with-x '(exp x) 0 1)
=> 1.7182817
</lang lisp>
 
This version ensures that the program is compiled, once, for more efficient execution:
Cookies help us deliver our services. By using our services, you agree to our use of cookies.