dropLast

Returns a new list containing all elements except last n elements.

Parameters

n

Number of elements to drop from the end of the list.

Throws