I saw this example code:
(mapcar '1+ '(2 4 6))
⇒ (3 5 7)
But I do not understand '1+ here. it will apply a function to a list but this style obviously not like a function. If means add, the function should be +, what does '1+ mean?
|
It's really a function, which means add 1. you can try below example:
The implementation is at data.c:
|
||||
|
|
|
|
|||
|
|
|
You can replace it with
Or you can replace the whole
That is because
or
But
|
|||
|
|
1+is the name of a function:C-h f 1+ RET– phils 2 hours ago