Liking cljdoc? Tell your friends :D

clj-toolbox.maths

Functions for math and numbers

Functions for math and numbers
raw docstring

averageclj

(average coll)

Gets the average of every element in coll

Gets the average of every element in coll
sourceraw docstring

average-byclj

(average-by f coll)

Gets the average of (f x) for every x in coll

Gets the average of (f x) for every x in coll
sourceraw docstring

exp-or-throw!clj

(exp-or-throw! a)

A wrapper around Math/exp that throws if the result would be infinite

A wrapper around Math/exp that throws if the result would be infinite
sourceraw docstring

parse-intclj

(parse-int s)

Shortcut for Integer/parseInt to make it easier to pass around as an argument

Shortcut for Integer/parseInt to make it easier to pass around as an argument
sourceraw docstring

squareclj

(square x)

Returns the square of a number

Returns the square of a number
sourceraw docstring

sumclj

(sum coll)

Gets the sum of every element in coll

Gets the sum of every element in coll
sourceraw docstring

sum-byclj

(sum-by f coll)

Gets the sum of (f x) for every x in coll

Gets the sum of (f x) for every x in coll
sourceraw docstring

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