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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |