Collections: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) m (Fix Perl 6 -> Raku in comments) |
(→{{header|Wren}}: Added syntax highlighting.) |
||
Line 4,085: | Line 4,085: | ||
=={{header|Wren}}== |
=={{header|Wren}}== |
||
Wren has only Map(hash) and List(array) |
Wren has only Map(hash) and List(array). |
||
<lang ecmascript>var list = [] // Empty Array |
|||
⚫ | |||
list = [1, 2, 3, 4] |
|||
list = [1,2,3,4] |
|||
list.add(5) |
list.add(5) |
||
list.clear() |
list.clear() |
||
Line 4,102: | Line 4,101: | ||
for (e in map.keys) { |
for (e in map.keys) { |
||
// Do stuff |
// Do stuff |
||
⚫ | |||
} |
|||
</lang> |
|||
=={{header|zkl}}== |
=={{header|zkl}}== |