Packages

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

Current section

Files

Jump to
r_enum lib r_map native.ex
Raw

lib/r_map/native.ex

defmodule RMap.Native do
@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, [:size, :map])
end
end