lib/r_enum/native.ex
defmodule REnum.Native do
@deprecate_functions [:partition, :filter_map, :chunk, :uniq]
@moduledoc """
A module defines all of native Enum functions when `use REnum.Native`.
[See also.](https://hexdocs.pm/elixir/Enum.html)
"""
@spec __using__(any) :: list
defmacro __using__(_opts) do
RUtils.define_all_functions!(Enum, @deprecate_functions)
end
end