length
Consumes a list from the top of the stack and returns its length.
[ 1 2 3 4 5 ] length → 5
[ 1 2 3 4 5 ] copy length → [ 1 2 3 4 5 ] 5
[] length → 0
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
lengthConsumes a list from the top of the stack and returns its length.
[ 1 2 3 4 5 ] length → 5
[ 1 2 3 4 5 ] copy length → [ 1 2 3 4 5 ] 5
[] length → 0