picolisp or J on [2013-09-30 Mon 07:45]

PicoLisp version

(de avg (L) (/ (apply + L) (length L)))
(avg '(5 10))

J Version

avg=: +/ % #
avg 5 10

NB. Version 2
(+/%#) 5 10

With APL you see the cake, not the cookbook.




Prev: J rank in a nutshell  Next: first iOS app