Closures/Value capture: Difference between revisions

Line 1,252:
 
Using Inventory, and a stack object (reading from position, and another way, we pop functions, using Read)
 
 
<lang M2000 Interpreter>
Inventory Alfa
Line 1,264 ⟶ 1,266:
Stack Beta {
For i=0 to 9 {
Data (lambda i -> i**2)
}
}
Anonymous user