News for hackers. Stuff that matters.
Re:Is Clojure dying, and what has Ruby got to do with it? by latte on Friday May 26, 2017 @07:31AM (#14423310)
Clojure's * can accept any number of arguments, including zero (returns 1 in this case), one (acts as identity function on numbers) or more than two (returns the product of all arguments). This helps to simplify arithmetic expressions in some cases (e. g. polynominals) and allows to calculate a sum or product of any sequence, including empty one, using (reduce * xs)

There are no comments on this comment yet.