ClojureCLR v3.1 Release Notes
-
➕ Added a new clojure.math namespace which provides wrappers for the functions available in java.lang.Math. 👍 These functions are narrowed to only
long
anddouble
overloads and provide primitive support without reflection.In addition, the following functions were added to clojure.core:
- ⚡️
abs
- absolute value in optimized form for all Clojure numeric types (long, double, ratio, bigint, bigdecimal) NaN?
- predicate for doubles to check whether "not a number"infinite?
- predicate for doubles to check whether positive or negative infinityCLJ-2668 Add NaN? and infinite? predicates
CLJ-2664 Add clojure.java.math namespace, wrappers for java.lang.Math
⚡️ CLJ-2673 Add
abs
, and updatemin
andmax
to use Math impls when possible📄 CLJ-2677 clojure.math - fix method reflection in bodies and inlines, fix docstrings, renamed
✅ CLJ-2689 Fix clojure.math tests to be more tolerant of floating point comparisons
- ⚡️