user=> (inc 1) 2 user=> (inc 1.0) 2.0 user=> (inc 1/2) 3/2 user=> (inc -1) 0
Returns a number one less than num.
(defn inc "Returns a number one greater than num." {:inline (fn [x] `(. clojure.lang.Numbers (inc ~x))) :added "1.0"} [x] (. clojure.lang.Numbers (inc x)))
Is the documentation suppose to be: "Returns a number one greater than x." ? If not what is num?
Comments top
1 comment(s) for inc.
Is the documentation suppose to be: "Returns a number one greater than x." ? If not what is num?