RosettaCodeData/Task/Runtime-evaluation/Smalltalk/runtime-evaluation-3.st

3 lines
100 B
Smalltalk

e := '[ :x :y | (x*x + (y*y)) sqrt ]'.
Transcript show: ((Compiler evaluate: e) value: 3 value: 4).