Jump to content

Arena storage pool: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
m (Automated syntax highlighting fixup (second round - minor fixes))
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 1,373:
 
We can therefore simulate an arena storage pool as follows.
<syntaxhighlight lang="ecmascriptwren">var arena = List.filled(5, 0) // allocate memory for 5 integers
for (i in 0..4) arena[i] = i // insert some integers
System.print(arena) // print them
9,485

edits

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