... a function which is very important in the Lisp world: apply. For those
who don't know, apply takes a function and a list of arguments, and
invokes the function on those arguments. In Scheme, (apply + '(1 2 3))
is the same as invoking (+ 1 2 3), and returns 6. ...
This is quite simple:
foldr (+) 0 [1,2,3]
foldr1 (+) [1,2,3]
results in 6.
To apply a function to each element of a list:
map f list
e.g.
map (2*) [1,2,3]
results in [2,4,6]
Is this what you are looking for?