Jump to content

Runtime evaluation/In an environment: Difference between revisions

m (syntax highlighting fixup automation)
Line 991:
</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}}==
<syntaxhighlight lang="ruby">def bind_x_to_value(x)
1,150

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.