function | since v1.9.75 | clojure.core/nat-int? | Edit |
(nat-int? x)
Return true if x satisfies int? and is a natural integer value.
(defn nat-int?
[x]
(cond
(integer? x)
(not (neg? x))
(instance? goog.math.Integer x)
(not (.isNegative x))
(instance? goog.math.Long x)
(not (.isNegative x))
:else false))