List

From MiniScript Wiki
Revision as of 20:58, 5 December 2021 by SebNozzi (talk | contribs) (Add empty list)
Jump to navigation Jump to search

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.

emptyList = []
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.