Lists

Within spells, it is possible to create lists of an arbitrary amount of fragments merged into a single value.

Lists are zero indexed.

Catalogue Delusion



-> [Any]

Creates a new empty list.

Tally Distortion



[Any] -> Number

Returns the amount of elements in the given list.

Expansion Stratagem



[Any], Any... -> [Any]

Appends one or many elements to the end of the given list.

Collection Stratagem



[Any], [Any]... -> [Any]

Creates a new list containing the elements of all given lists.

Isolation Distortion



[Any], Number, Number? -> [Any]

Returns a list containing the elements of the given list with indexes starting at the first number and ending before the second.

Counter Distortion



[Any] -> [Any]

Returns the given list, reversed.

Inflation Stratagem



[Any], Number, Any... -> [Any]

Inserts one or many elements at a specific position in the given list.

Extraction Distortion



[Any], Number -> Any

Finds and returns an element from the given list based on index.

Locating Distortion



[Any], Any -> Number | Void

Finds and returns the index of a specific element in the given list, or void if the element is not in the list.

Expulsion Stratagem



[Any], Number... | [Number] -> [Any]

Removes one or many elements from the given list by their index. Indexes do not move around mid-removal.

Eviction Stratagem



[Any], Any... -> [Any]

Removes one or many elements from the given list by checking their equality with the set of given fragments.

Interlude Distortion



Number, Number -> [Number]

Returns a list containing the range of integer numbers starting at the first given number and ending before the second.