RosettaCodeData/Task/Runtime-evaluation/E/runtime-evaluation-2.e

6 lines
109 B
Text
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
? def [value, env] := e`def x := 1 + 1`.evalToPair(safeScope)
# value: [2, ...]
? e`x`.eval(env)
# value: 2