take

Returns a new list containing the first n elements of this list.

Parameters

n

Number of elements to take from the beginning of the list.

Throws