Timeline for How to subtract 1 from the nth element of a list of numbers?
Current License: CC BY-SA 4.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 11, 2020 at 20:48 | history | became hot network question | |||
Feb 11, 2020 at 19:49 | answer | added | RichieHH | timeline score: 1 | |
Feb 11, 2020 at 16:45 | comment | added | Basil | @Drew How do I do that? If you know how to, feel free to do so. | |
Feb 11, 2020 at 16:27 | comment | added | Drew | This Q and emacs.stackexchange.com/q/55428/105 are essentially the same question. One of them should be deleted. (@Basil: would you like to consolidate the underlying question as a community question?) | |
Feb 11, 2020 at 16:16 | history | edited | Drew | CC BY-SA 4.0 |
edited title
|
Feb 11, 2020 at 16:08 | history | edited | Drew |
edited tags; edited tags
|
|
Feb 11, 2020 at 14:53 | vote | accept | Sati | ||
Feb 11, 2020 at 14:37 | comment | added | Basil |
The function - is a pure arithmetic function which accepts numbers and returns a number. It knows nothing about where the arguments came from and does not modify any stored data. If you care about the result of the arithmetic operation then you should store it back in the list, e.g. using the convenient macros listed in the answer(s) below. Be careful, though, not to destructively modify quoted constant lists such as '(3 6) in-place; make a copy of the list using copy-sequence first or allocate a new one using (list 3 6) instead.
|
|
Feb 11, 2020 at 12:57 | answer | added | serycjon | timeline score: 7 | |
Feb 11, 2020 at 12:44 | history | asked | Sati | CC BY-SA 4.0 |