Jump to content

Closures/Value capture: Difference between revisions

m
fix markup
m (fix markup)
m (fix markup)
Line 1,504:
 
A dictionary based approach may prove somewhat easier:
<!--<syntaxhighlight lang="Phixphix">(phixonline)-->
<span style="color: #008080;">with</span> <span style="color: #008080;">javascript_semantics</span>
<span style="color: #008080;">function</span> <span style="color: #000000;">square</span><span style="color: #0000FF;">(</span><span style="color: #004080;">integer</span> <span style="color: #000000;">tid</span><span style="color: #0000FF;">)</span>
Line 1,522:
same output, for both tests
=={{header|Phixmonti}}==
<syntaxhighlight lang="Phixmontiphixmonti">def power2
dup *
enddef
10,333

edits

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