(rontolisp) docs
← Numbers and predicates

inc'

(inc' x)

One more, with overflow checking. Integers are bignums here, so this is inc: it never overflows. Anything but a number is refused with the oracle's class (NullPointerException for nil, ClassCastException otherwise). As a value one argument.