Timeline for Difference between apply and funcall
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 20, 2019 at 15:54 | vote | accept | Realraptor | ||
Nov 20, 2019 at 4:35 | history | became hot network question | |||
Nov 19, 2019 at 22:00 | comment | added | phils |
"using our last arg as list of args" is the key phrase in the quoted documentation. It means you can say things like (apply #'FUNC ARGS) where ARGS is an arbitrary list which has likely been supplied or generated by other code.
|
|
Nov 19, 2019 at 21:41 | history | edited | Drew | CC BY-SA 4.0 |
edited tags
|
Nov 19, 2019 at 21:36 | answer | added | Drew | timeline score: 9 | |
Nov 19, 2019 at 20:55 | comment | added | Basil |
(apply #'+ 1 2 '(3 4)) is the same as (funcall #'+ 1 2 3 4) . In other words, (funcall FN X Y Z) is the same as (apply FN (list X Y Z)) .
|
|
Nov 19, 2019 at 20:30 | history | asked | Realraptor | CC BY-SA 4.0 |