Reference

List

Constructor
Input A list of elements separated by comma.
Output A list containing all the elements.
Indexing
Input A list and a number representing the index.
Output The element at the specified index in the list.
At
Input A list and a number representing the index.
Output The element at the specified index in the list.
Sublist
Input A list and two numbers representing the start and end indices.
Output A new list from the start index to the end index.
Set
Input A list, a number, and any value.
Output A new list with the value set at the specified index.
Join
Input A list and a string.
Output A string that is the result of concatenating the list elements, separated by the specified string.
Length
Input A list.
Output The number of elements in the list.
Concatenation
Input Two lists.
Output A new list that is the result of concatenating the two lists.
Is empty
Input A list.
Output True if the list is empty. False otherwise.
Is not empty
Input A list.
Output True if the list is not empty. False otherwise.
Contains
Input A list and any value.
Output True if the list contains the specified value. False otherwise.
First
Input A list.
Output The first element of the list.
Last
Input A list.
Output The last element of the list.
Init
Input A list.
Output A new list containing all elements except the last one.
Rest
Input A list.
Output A new list containing all elements except the first one.
Take
Input A list and a number.
Output A new list containing the first n elements of the input list, where n is the specified number.
Drop
Input A list and a number.
Output A new list containing all elements except the first n elements, where n is the specified number.
Insert start
Input A list and any value.
Output A new list with the value inserted at the start.
Insert end
Input A list and any value.
Output A new list with the value inserted at the end.
Remove
Input A list and any value.
Output A new list with all the occurrences of the value removed.
Remove at
Input A list and a number.
Output A new list with the element at the specified index removed.
Reverse
Input A list.
Output A new list with the elements in reverse order.
Filled
Input A number and any value.
Output A list filled with the specified value, repeated the specified number of times.
Index of
Input A list and any value.
Output The index of the first occurrence of the value in the list, or -1 if the value is not found.
Swap
Input A list and two numbers.
Output A new list with the elements at the specified indices swapped.
Map
Input A list and a function that takes an element of the list as input and returns a new value.
Output A new list with the function applied to each element of the input list.
Filter
Input A list and a function that takes an element of the list as input and returns a boolean.
Output A new list containing only the elements of the input list for which the function returns true.
Reduce
Input A list, an initial value, and a function that takes the current value and an element of the list as input and returns a new value.
Output The result of applying the function to each element of the list, starting with the initial value.
All
Input A list and a function that takes an element of the list as input and returns a boolean.
Output True if the function returns true for all elements of the list. False otherwise.
None
Input A list and a function that takes an element of the list as input and returns a boolean.
Output True if the function returns false for all elements of the list. False otherwise.
Any
Input A list and a function that takes an element of the list as input and returns a boolean.
Output True if the function returns true for at least one element of the list. False otherwise.
Zip
Input Two lists and a function that takes an element from each list as input and returns a new value.
Output A new list with the function applied to each pair of elements from the input lists.
Sort
Input A list and a function that takes two elements of the list as input and compared them.
Output A new list with the elements sorted according to the function.