lib/r_map/native.ex
defmodule RMap.Native do
@undelegate_functions [:size, :map, :reject, :filter]
@moduledoc """
A module defines all of native Map functions when `use RMap.Native`.
[See also.](https://hexdocs.pm/elixir/Map.html)
"""
@spec __using__(any) :: list
defmacro __using__(_opts) do
RUtils.define_all_functions!(Map, @undelegate_functions)
end
end