Enum.slice/3

defmodule Enum do
  def slice(enumerable, start, count)
end

Returns a subset list of the given enumerable, from start (zero-based) with count number of elements if available.

A negative start can be passed, which means the enumerable is enumerated once and the index is counted from the end.

It returns [] if count is 0 or if start is out of bounds.