croma v0.9.0 Croma.NegInteger View Source

Module that represents the Elixir’s built-in neg_integer type. Intended to be used with other parts of croma to express neg_integer variables.

Link to this section Summary

Functions

Simply checks the argument’s type using is_integer(var!(x)) and var!(x) < 0

Link to this section Types

Link to this type t() View Source
t() :: neg_integer()

Link to this section Functions

Link to this function valid?(value) View Source
valid?(term()) :: boolean()

Simply checks the argument’s type using is_integer(var!(x)) and var!(x) < 0.