DarkMatter.Guards.is_pos_integer
You're seeing just the macro
is_pos_integer
, go back to DarkMatter.Guards module for more information.
Specs
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