Length of a list (length)
Number of elements in a list.
How to write it
length(list)
- list
- The list. Takes a list.
Examples
length([1, 2, 3])In the solver,
Open in the solverlength([1, 2, 3])gives3.
Related functions
- list
A list of the arguments.
- last
The last element of a list.
- map
Apply a function to every element of a list.
- join
Join lists into one.
- map_thread
Apply a function to corresponding elements of several lists.
- intersection
The elements that are in every one of some lists.