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

9 lines
203 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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}}