Table of Contents






List

A can store multiple values at once. A list can be restricted to a specific value typ.

Description

Returns a empty List with no typ restriction.

Returns
data type description
List A List object
Description

Adds a new value to the list collection.

Parameters
parameter data type description
0 Value The value which should be added to the list (can also be a String, Ident, Icon,..)
Returns
data type description
Result<()> Returns error when input was wrong
Description

Gets an entry from the list

Parameters
parameter data type description
0 Integer The position in the list we want the entry of
Returns
data type description
Option<Value> A Value which is the actual restriction
Description

Replaces an entry at the defined position.

Parameters
parameter data type description
0 Integer The index of the entry inside the list to replace
1 Any The new value to replace the old one with
Returns
data type description
Result<()> Returns error when input was wrong
Description

Remove an entry at the given positon.

Parameters
parameter data type description
0 Integer Position where the entry should be removed
Returns
data type description
Result<()> Returns error when input was wrong
Description

Clears the complete list.

Description

Returns the length of the list

Returns
data type description
usize Length of the list
Description

Returns if the list is empty or has entries inside.

Returns
data type description
bool True when empty false when it has entries