(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))))))
Comments top
No comments for prod. Log in to add a comment.