Liking cljdoc? Tell your friends :D

broch.core


*clj

(* x)
(* x y)
(* x y & more)

+clj

(+ x)
(+ x y)
(+ x y & more)

-clj

(- x)
(- x y)
(- x y & more)

/clj

(/ x)
(/ x y)
(/ x y & more)

<clj

(< _)
(< x y)
(< x y & more)

<=clj

(<= _)
(<= x y)
(<= x y & more)

>clj

(> _)
(> x y)
(> x y & more)

>=clj

(>= _)
(>= x y)
(>= x y & more)

amperesclj


boxclj

(box f)

Like boxed but partial.

Like boxed but partial.
raw docstring

boxedclj

(boxed f x)

Transform the quantity's number by any fn (i.e. fmap on the quantity-functor). Also works for numbers.

Transform the quantity's number by any fn (i.e. fmap on the quantity-functor).
Also works for numbers.
raw docstring

candelasclj


centilitersclj


centimetersclj


cubic-centimetersclj


cubic-feetclj


cubic-inchesclj


cubic-kilometersclj


cubic-metersclj


cubic-milesclj


cubic-millimetersclj


cubic-yardsclj


decilitersclj


decimetersclj


defunitcljmacro

(defunit unit-fn-name measure symb scale-or-comp)
(defunit unit-fn-name measure symb scaling composition)

feetclj


from-ednclj

(from-edn x)

gramsclj


hoursclj


inchesclj


joulesclj


kelvinclj


kilogramsclj


kilograms-per-hourclj


kilograms-per-secondclj


kilometersclj


kilometers-per-hourclj


kilowatt-hoursclj


kilowattsclj


knotsclj


litersclj


liters-per-hourclj


liters-per-secondclj


maxclj

(max x)
(max x y)
(max x y & more)

measureclj

(measure u)

What this quantity is a measure of.

What this quantity is a measure of.
raw docstring

metersclj


meters-per-secondclj


meters-per-second2clj


milesclj


miles-per-hourclj


millimetersclj


minclj

(min x)
(min x y)
(min x y & more)

minutesclj


molesclj


nautical-milesclj


new-unitclj

(new-unit measure symb scale-or-comp)
(new-unit measure symb scaling composition)

Register a new type of unit with the given measure, symbol, composition and/or scaling. Returns a fn (fn [number]) that creates a quantity of this unit.

Register a new type of unit with the given measure, symbol, composition and/or scaling.
Returns a fn (fn [number]) that creates a quantity of this unit.
raw docstring

newtonsclj


numclj

(num u)

Get the number from a quantity. Pass through if already a number.

Get the number from a quantity. Pass through if already a number.
raw docstring

quantity?clj

(quantity? u)

Is this a quantity?

Is this a quantity?
raw docstring

secondsclj


square-centimetersclj


square-decimetersclj


square-feetclj


square-inchesclj


square-kilometersclj


square-metersclj


square-milesclj


square-millimetersclj


square-yardsclj


symbolclj

(symbol u)

The unit symbol for this quantity.

The unit symbol for this quantity.
raw docstring

to-ednclj

(to-edn u)

tonnesclj


tonnes-per-hourclj


watt-hoursclj


wattsclj


with-numclj

(with-num unit n)

Make copy of a quantity with a different number.

Make copy of a quantity with a different number.
raw docstring

yardsclj

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close