Input | A list of elements separated by comma. |
Output | A list containing all the elements. |
Input | A list and a number representing the index. |
Output | The element at the specified index in the list. |
Input | A list and a number representing the index. |
Output | The element at the specified index in the list. |
Input | A list and two numbers representing the start and end indices. |
Output | A new list from the start index to the end index. |
Input | A list, a number, and any value. |
Output | A new list with the value set at the specified index. |
Input | A list and a string. |
Output | A string that is the result of concatenating the list elements, separated by the specified string. |
Input | A list. |
Output | The number of elements in the list. |
Input | Two lists. |
Output | A new list that is the result of concatenating the two lists. |
Input | A list. |
Output | True if the list is empty. False otherwise. |
Input | A list. |
Output | True if the list is not empty. False otherwise. |
Input | A list and any value. |
Output | True if the list contains the specified value. False otherwise. |
Input | A list. |
Output | The first element of the list. |
Input | A list. |
Output | The last element of the list. |
Input | A list. |
Output | A new list containing all elements except the last one. |
Input | A list. |
Output | A new list containing all elements except the first one. |
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. |
Input | A list and a number. |
Output | A new list containing all elements except the first n elements, where n is the specified number. |
Input | A list and any value. |
Output | A new list with the value inserted at the start. |
Input | A list and any value. |
Output | A new list with the value inserted at the end. |
Input | A list and any value. |
Output | A new list with all the occurrences of the value removed. |
Input | A list and a number. |
Output | A new list with the element at the specified index removed. |
Input | A list. |
Output | A new list with the elements in reverse order. |
Input | A number and any value. |
Output | A list filled with the specified value, repeated the specified number of times. |
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. |
Input | A list and two numbers. |
Output | A new list with the elements at the specified indices swapped. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |