dropLast

Returns a list containing all elements except last n elements.

Parameters

n

how many elements to drop