hi,
trying to solve this problem:
a function that adds up the numbers at the end of lists and then averages them.
input is like (xxx 1) (yyy 2) (zzz 3)....(nnn n)
=>6 ;(1+2+3+..+n)/n
(defun averaging (lst)
(if (null lst)
0
(+(setq(last lst)?
how does it register the number of lists it has visited, which will be the denominator of the average?
there is some sort of recursion i guess..
thnx
trying to solve this problem:
a function that adds up the numbers at the end of lists and then averages them.
input is like (xxx 1) (yyy 2) (zzz 3)....(nnn n)
=>6 ;(1+2+3+..+n)/n
(defun averaging (lst)
(if (null lst)
0
(+(setq(last lst)?
how does it register the number of lists it has visited, which will be the denominator of the average?
there is some sort of recursion i guess..
thnx