Type cards are cards used to store the type of data. Type cards are denoted using square brackets or [] and are highlighted pink. Below is a list of all the type cards based on module:

lagmite base

[text] used to denote text. Sample usage:

disp [text] Canary Wharf

//Expected output: Canary Wharf

[bool] is used to denote boolean values, either True or False. Sample usage:

disp [bool] true

//Expected output: true

[num], [int], [long], [float] is used to declare numbers by their respective attributes. [num] is the most versatile, being able to work with all number formats. Sample usage:

disp [num] -24
disp [int] 56
disp [long] 55906471
disp [float] 829.617281

//Expected output: -24
									 56
									 55906471
									 829.617281

[list] is used to declare lists, by listing out each of the list’s members separated with a cpmma. Sample usage:

disp [list] [1,2,3,4,5,6]

//Expected output: [1,2,3,4,5,6]

lagmite math

In lagmite math, there are additional types of data that are recognized:

[expr] is used to declare a mathematical expression that may or may not include operators. When they don’t include operators, they are treated like usual numbers and can also be used for units. Sample usage:

disp [text] (calc [expr] 1+4)

//Expected result: 5

lagmite science

In lagmite science, the [unit] type is available, usually to display units in the terminal (although this could also be achieved by using [text].

Usage

All functions in Lagmite require the use of type cards, and these vary by function.