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
raw 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
raw 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
raw 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
raw docstring

squareclj

(square x)

Returns the square of a number

Returns the square of a number
raw docstring

sumclj

(sum coll)

Gets the sum of every element in coll

Gets the sum of every element in coll
raw 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
raw 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