/

function/macrosince v0.0-927 clojure.core//Edit
(/ x)
(/ x y)
(/ x y & more)

Details:

If no denominators are supplied, returns 1/numerator, else returns numerator divided by all of the denominators.


Examples:

(/ 6 3)
;;=> 2

(/ 6 3 2)
;;=> 1

(/ 10)
;;=> 0.1

(/ 1 3)
;;=> 0.3333333333333333

See Also:


Source docstring:
If no denominators are supplied, returns 1/numerator,
else returns numerator divided by all of the denominators.
Function code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn ^number /
  ([x] (/ 1 x))
  ([x y] (cljs.core/divide x y)) ;; FIXME: waiting on cljs.core//
  ([x y & more] (reduce / (/ x y) more)))

Macro code @ clojurescript:src/main/clojure/cljs/core.cljc
(core/defmacro ^::ana/numeric /
  ([x] `(/ 1 ~x))
  ([x y] (core/list 'js* "(~{} / ~{})" x y))
  ([x y & more] `(/ (/ ~x ~y) ~@more)))