drop function
A list without its first elements.
How to write it
drop(list, n)
- list
- The list. Takes a list.
- n
- How many elements to leave out. Takes a whole number.
Examples
drop([1, 2, 3, 4], 2)In the solver,
Open in the solverdrop([1, 2, 3, 4], 2)gives[3, 4].
Related functions
- first
The first element of a list.
- dimensions
The size of a list or a matrix, level by level.
- flatten
Nested lists flattened into one list.
- count
How many elements of a list equal a value.
- fold
Combine the elements of a list from the left with a function, starting from a value.
- constant_array
A list of copies of a value.