Creating an Array: Difference between revisions

Content added Content deleted
No edit summary
(Added Toka)
Line 466: Line 466:


this creates an array with the name <tt>b</tt> with two elements. The keys of the elements are "foo" and "bar" and the values are <tt>b(foo) == 12</tt> and <tt>b(bar) == hello</tt>.
this creates an array with the name <tt>b</tt> with two elements. The keys of the elements are "foo" and "bar" and the values are <tt>b(foo) == 12</tt> and <tt>b(bar) == hello</tt>.

==[[Toka]]==
[[Category:Toka]]

100 cells is-array foo

To create an array with several initial values:

3 cells is-array foo
reset
1 2 3 depth [ i 1- foo put-element ] iterate


==[[Visual Basic .NET]]==
==[[Visual Basic .NET]]==