eval
in R7RS
- The
eval
procedure evaluates an S-expression.
- Only global bindings in a given environment are accessible.
(eval <expr-or-def> <environment>)
Example
(import (scheme base) (scheme eval))
(eval
'(display "Hello, world!")
(environment '(scheme write)))