Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tuukkah
on Dec 17, 2022
|
parent
|
context
|
favorite
| on:
The empty list
append concatenates lists so you'd need (append nil '(foo))
DonaldFisk
on Dec 17, 2022
[–]
It actually leaves both its arguments unaltered and creates a new list. There's another function called nconc which does concatenate them, changing its first argument to the new list (unless its first argument is NIL).
aidenn0
on Dec 17, 2022
|
parent
[–]
Note that append does not copy the last argument, so there is structure sharing when you use it.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: