Enum.take/2
defmodule Enum do
def take(enumerable, count)
end
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 [].
defmodule Enum do
def take(enumerable, count)
end
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 [].