Packages

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

Current section

Files

Jump to
r_enum lib r_range native.ex
Raw

lib/r_range/native.ex

defmodule RRange.Native do
@moduledoc """
A module defines all of native Range functions when `use RRange.Native`.
[See also.](https://hexdocs.pm/elixir/Range.html)
"""
@spec __using__(any) :: list
defmacro __using__(_opts) do
RUtils.define_all_functions!(Range, [:range?])
end
end