Skip to content

整数负

类型 ​

meta-lisp
(-> 整数型 整数型)

描述 ​

取整数的相反数。

例子 ​

meta-lisp
(整数负 42)  ;; => -42
(整数负 -1)  ;; => 1
(整数负 0)   ;; => 0