Hello folks,
New State, City, Job, Home, and everything else. Took nearly a year but things have settled down enough to get back to coding so here I am again asking for your guidence.
I am kind of surprised that I have not needed/wanted to do this yet, but here I am trying to find a way to add a value to an existing value inside a list.
original list
(1 2 3 4 5)
I want to add 7 to the 3rd element something like this(only a version that works)
(setq (nth 2 list) (+(nth 2 list) 7))
list afterwards
(1 2 10 4 5 )
I can imagine ways to do this but they all involve creating a new list with the adjusted value. Hoping for a easier solution, just drawing a blank today.