3 lines
79 B
EmacsLisp
3 lines
79 B
EmacsLisp
(defun mean (lst)
|
|
(/ (float (apply '+ lst)) (length lst)))
|
|
(mean '(1 2 3 4))
|