Croma.PosInteger (croma v0.12.0)

View Source

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

Summary

Functions

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

Types

t()

@type t() :: pos_integer()

Functions

valid?(x)

@spec valid?(term()) :: boolean()

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