function/macro | since v0.0-1798 | clojure.core/unchecked-add | Edit |
(unchecked-add)
(unchecked-add x)
(unchecked-add x y)
(unchecked-add x y & more)
Returns the sum of nums. (+) returns 0.
(defn ^number unchecked-add
([] 0)
([x] x)
([x y] (cljs.core/unchecked-add x y))
([x y & more] (reduce unchecked-add (cljs.core/unchecked-add x y) more)))
(core/defmacro ^::ana/numeric unchecked-add
([& xs] `(+ ~@xs)))