dimensions function
The size of a list or a matrix, level by level.
How to write it
dimensions(list)
- list
- A list, or a matrix. Takes a list.
Examples
dimensions([[1, 2, 3], [4, 5, 6]])In the solver,
Open in the solverdimensions([[1, 2, 3], [4, 5, 6]])gives[2, 3].
Related functions
- drop
A list without its first elements.
- count
How many elements of a list equal a value.
- first
The first element of a list.
- constant_array
A list of copies of a value.
- flatten
Nested lists flattened into one list.
- complement
The elements of a list that are in none of the others.