Enum

take/2

take(enumerable, count)

Takes count elements from the beginning of enumerable.

If a negative count is given, the elements will be taken from the end.

If count is 0, it returns [].