3 lines
85 B
Common Lisp
3 lines
85 B
Common Lisp
(defun mean (lst)
|
|
(/ (float (apply '+ lst)) (length lst)))
|
|
(mean '(1 2 3 4))
|