fx_is_***


fx_is_eq(fx1, @rest ...)
fx_is_lt(fx1, @rest ...) 
fx_is_gt(fx1, @rest ...) 
fx_is_lteq(fx1, @rest ...) 
fx_is_gteq(fx1, @rest ...) 
      

Fx_is_eq – return true if its arguments are equal, return false otherwise. Raise an error if an argument is not a fixnum.

Fx_is_lt – return true if its arguments are monotonically increasing, i.e., each argument is greater than the preceding ones, return false otherwise. Raise an error if an argument is not a fixnum.

Fx_is_gt – return true if its arguments are monotonically decreasing, return false otherwise. Raise an error if an argument is not a fixnum.

Fx_is_lteq – return true if its arguments are monotonically nondecreasing, i.e., each argument is not less than the preceding ones, return false otherwise. Raise an error if an argument is not a fixnum.

Fx_is_gteq – return true if its arguments are monotonically non-increasing, return false otherwise. Raise an error if an argument is not a fixnum.

Examples:


fx_is_eq(1, 1)
// true

fx_is_lteq(1, 1, 2, 3, 4, 4)
// true
      

Also see:

is_fixnum
fxadd
fxand


Core Module Index | Contents