DarkMatter.Guards.is_pos_integer

You're seeing just the macro is_pos_integer, go back to DarkMatter.Guards module for more information.
Link to this macro

is_pos_integer(value)

View Source (macro)

Specs

is_pos_integer(any()) :: Macro.t()

Define a guard clause for working with pos_integer/0.

Examples

iex> is_pos_integer(1)
true

iex> is_pos_integer(0)
false

iex> is_pos_integer(-1)
false