Drop list elements from the right
Returns a list with n
elements removed from the right.
- Use slice notation to remove the specified number of elements from the right.
- Omit the last argument,
n
, to use a default value of1
.
Returns a list with n
elements removed from the right.
n
, to use a default value of 1
.