Difference between revisions of "List"

From MiniScript Wiki
Jump to navigation Jump to search
m
(Small example)
Line 2: Line 2:
  
 
A list is mutable, ordered sequence of values.  A list literal is defined by a comma-separated series of values enclosed in square brackets.
 
A list is mutable, ordered sequence of values.  A list literal is defined by a comma-separated series of values enclosed in square brackets.
 +
 +
<ms>
 +
numbers = [1, 2, 3, 4, 5]
 +
words = ["one", "two", "three", "four", "five"]
 +
</ms>
  
 
See also [[List Methods]].
 
See also [[List Methods]].

Revision as of 17:29, 5 December 2021

list is one of the core data types in MiniScript.

A list is mutable, ordered sequence of values. A list literal is defined by a comma-separated series of values enclosed in square brackets.

numbers = [1, 2, 3, 4, 5]
words = ["one", "two", "three", "four", "five"]

See also List Methods.


This article is a stub. You can help the MiniScript Wiki by expanding it.