DarkMatter.Guards.is_non_neg_integer
You're seeing just the macro
is_non_neg_integer
, go back to DarkMatter.Guards module for more information.
Specs
Define a guard clause for working with non_neg_integer/0
.
Examples
iex> is_non_neg_integer(3)
true
iex> is_non_neg_integer(0)
true
iex> is_non_neg_integer(-100)
false