Helpers for manipulating numbers in the same way between clj and cljs
Helpers for manipulating numbers in the same way between clj and cljs
(check-val-in-range min max val)
Returns nil
if val
is in the range [min;max[
.
Otherwise, returns val
itself.
Returns `nil` if `val` is in the range `[min;max[`. Otherwise, returns `val` itself.
(check-vals-in-range min max vals)
Check if vals
are between the range of integers (i.e. [min;max[
.
Returns the value if it exceeds the range.
Check if `vals` are between the range of integers (i.e. `[min;max[`. Returns the value if it exceeds the range.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close