Skip to content

int-is-non-zero

Type ​

meta-lisp
(-> int-t bool-t)

Description ​

Check if an integer is non-zero.

Examples ​

meta-lisp
(int-is-non-zero 1)   ;; => true
(int-is-non-zero -1)  ;; => true
(int-is-non-zero 0)   ;; => false