Runtime evaluation/In an environment: Difference between revisions

Content added Content deleted
m (syntax highlighting fixup automation)
Line 991: Line 991:
</pre>
</pre>


=={{header|RPL}}==
≪ 2 x ^ ≫ 'POWR2' STO
{{in}}
<pre>
3 5 ≪ → x ≪ POW2 SWAP ≫ → x ≪ POW2 - ≫ EVAL
</pre>
{{out}}
<pre>
1: 24
</pre>
=={{header|Ruby}}==
=={{header|Ruby}}==
<syntaxhighlight lang="ruby">def bind_x_to_value(x)
<syntaxhighlight lang="ruby">def bind_x_to_value(x)