Functions for math and numbers
Functions for math and numbers
(average coll)
Gets the average of every element in coll
Gets the average of every element in coll
(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
(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
(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
(square x)
Returns the square of a number
Returns the square of a number
(sum coll)
Gets the sum of every element in coll
Gets the sum of every element in coll
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close