Integer.is_odd
You're seeing just the macro
is_odd
, go back to Integer module for more information.
Determines if integer
is odd.
Returns true
if the given integer
is an odd number,
otherwise it returns false
.
Allowed in guard clauses.
Examples
iex> Integer.is_odd(5)
true
iex> Integer.is_odd(6)
false
iex> Integer.is_odd(-5)
true
iex> Integer.is_odd(0)
false