Closures/Value capture: Difference between revisions

→‎Insitux: inclusion
imported>Rowsety Moid
(→‎Insitux: inclusion)
Line 981:
{{out}}
<pre>Randomly selecting L[8] = 64</pre>
 
=={{Header|Insitux}}==
 
<syntaxhighlight lang="insitux">
(var funcs (for x (range 11) #(* x x)))
 
[(0 funcs) ((3 funcs)) ((4 funcs))]
</syntaxhighlight>
 
{{out}}
 
<pre>
[#(* x x) 9 16]
</pre>
 
=={{header|Io}}==
<syntaxhighlight lang="text">blist := list(0,1,2,3,4,5,6,7,8,9) map(i,block(i,block(i*i)) call(i))
112

edits