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