I have a statement like this:
((lambda (a b c) (+ a b c)) 1 2 3) ; Gives 6
And I would like to be able to also pass it a list as so:
That operation is called apply.
apply
(apply + (list 1 2 3)) ; => 6
apply "expands" the last argument; any previous arguments are passed as is. So these are all the same:
(apply + 1 2 3 (list 4 5 6)) (apply + (list 1 2 3 4 5 6)) (+ 1 2 3 4 5 6)