Difference between revisions of "List"

From MiniScript Wiki
Jump to navigation Jump to search
m (Add empty list)
m (Remove empty list)
Line 4: Line 4:
  
 
<ms>
 
<ms>
emptyList = []
 
 
numbers = [1, 2, 3, 4, 5]
 
numbers = [1, 2, 3, 4, 5]
 
words = ["one", "two", "three", "four", "five"]
 
words = ["one", "two", "three", "four", "five"]

Revision as of 20:58, 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"]


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