Jump to content

Apply a callback to an array: Difference between revisions

Line 637:
 
=={{header|Lisaac}}==
<lang Lisaac>+ a : ARRAY[(INTEGER]);
+ b : BLOCK{INTEGER;};
 
a := ARRAY[(INTEGER]).create 1 to 3;
1.to 3 do { i : INTEGER;
a.put i to i;
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.