func v0.4.1 Func.Num
Summary
Functions
Checks the value is a negative number
Checks the value is not zero
Checks the value is a positive number
Predecessor function
Successor function
Checks the value is zero
Types
Functions
Checks the value is a negative number.
iex> Func.Num.negative?(1)
false
iex> Func.Num.negative?(0)
false
iex> Func.Num.negative?(-1)
true
Checks the value is not zero.
iex> Func.Num.non_zero?(0)
false
iex> Func.Num.non_zero?(1)
true
Checks the value is a positive number.
iex> Func.Num.positive?(1)
true
iex> Func.Num.positive?(0)
false
iex> Func.Num.positive?(-1)
false
Checks the value is zero.
iex> Func.Num.zero?(0)
true
iex> Func.Num.zero?(1)
false