RosettaCodeData/Task/Runtime-evaluation-In-an-en.../Oz/runtime-evaluation-in-an-en...

9 lines
203 B
Plaintext

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}}