Packages

REnum is Enum extended with convenient functions inspired by Ruby and Rails ActiveSupport.

Current section

Files

Jump to
r_enum lib r_enum native.ex
Raw

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