Collections: Difference between revisions

m
(Jakt)
imported>Arakov
 
(2 intermediate revisions by 2 users not shown)
Line 1,170:
<syntaxhighlight lang="elena">
//Create and initialize ArrayList
var myAl := new system'collections'ArrayList().append:("Hello").append:("World").append:("!");
//Create and initialize List
var myList := new system'collections'List().append:("Hello").append:("World").append:("!");
</syntaxhighlight>
 
Line 4,530:
=={{header|Wren}}==
Wren has only Map(hash) and List(array).
<syntaxhighlight lang="ecmascriptwren">var list = [] // Empty Array
list = [1, 2, 3, 4]
list.add(5)
Anonymous user