function | removed v1.9.542 | added v1.9.75 | Edit |
(int-in-range? start end val)
Return true if start <= val and val < end
(defn int-in-range?
[start end val]
(cond
(integer? val) (c/and (<= start val) (< val end))
(instance? goog.math.Long val)
(c/and (.lessThanOrEqual start val)
(.lessThan val end))
(instance? goog.math.Integer val)
(c/and (.lessThanOrEqual start val)
(.lessThan val end))
:else false))