1.2.3-SNAPSHOT Arrow_down_16x16
  • (prod x)
Returns the product of the given sequence.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source incanter/core.clj:820 top

(defn prod
  "Returns the product of the given sequence."
  ([x]
    (let [xx (if (or (nil? x) (empty? x)) 
	       [1] 
	       (to-list x))]
      (DoubleDescriptive/product (DoubleArrayList. (double-array xx))))))
Vars in incanter.core/prod: defn double-array let
Used in 0 other vars

Comments top

No comments for prod. Log in to add a comment.