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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |