Jump to content

Closures/Value capture: Difference between revisions

m
(Add Axiom task)
Line 12:
test() == [(() +-> i^2) for i in 1..10]</lang>
 
This can be called from the interpreter using:
<lang Axiom>[x() for x in test()]</lang>
 
Line 18:
<lang Axiom>[1,4,9,16,25,36,49,64,81,100]
Type: List(Integer)</lang>
 
 
=={{header|C}}==
136

edits

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