How do I perform a function on every element in a list? For example say I have a list:
(1 x q)
and I was to use my-function
on 1
, x
, q
. Is there a predefined function for this? Similarly to foreach
in a "higher" level language? Or do I have to manually step through it using car
and cdr
?
Any help would be much appreciated!