RosettaCodeData/Task/Runtime-evaluation-In-an-environment/Oz/runtime-evaluation-in-an-environment.oz
2023-07-01 13:44:08 -04:00

8 lines
203 B
Text

declare
fun {EvalWithX Program A B}
{Compiler.evalExpression Program env('X':B) _}
-
{Compiler.evalExpression Program env('X':A) _}
end
in
{Show {EvalWithX "{Exp X}" 0.0 1.0}}