Anonymous user
Closures/Value capture: Difference between revisions
Added Io entry
(Added Io entry) |
|||
Line 808:
{{out}}
<pre>Randomly selecting L[8] = 64</pre>
=={{header|Io}}==
<lang>blist := list(0,1,2,3,4,5,6,7,8,9) map(i,block(i,block(i*i)) call(i))
writeln(blist at(3) call) // prints 9</lang>
=={{header|J}}==
|