If I have a list of numbers
(setq numbers '(10 11 12))
and I want to increase, say, the third number, I can do this:
(setf (nth 2 numbers) (1+ (nth 2 numbers)))
But I do not like to repeat "(nth 2 numbers)". Is there a way I can write this, but have only one link to "(nth 2 numbers)"?
source share