(defn sum "Returns the sum of the given sequence." ([x] (let [xx (if (or (nil? x) (empty? x)) [0] (to-list x))] (DoubleDescriptive/sum (DoubleArrayList. (double-array xx))))))
Comments top
No comments for sum. Log in to add a comment.