Search
15:59:18
Lord_of_Life_
** NICK Lord_of_Life
17:55:33
markasoftware
How might I simplify (setf (nth (third node) to-return) (nconc (nth (third node) to-return) (list i))) ?
17:56:10
markasoftware
to-return is a list. I want to append the element i to the end of a certain sub-list of to-return
17:56:55
markasoftware
i can't just use nconc and rely on its mutation, because if (nth (third node) to-return) is null, it obviously can't modify nil.
17:58:07
pjb
markasoftware: you write an appendf modifier macro (or use one from a library, but since it's a one-liner…)
17:58:36
specbot
http://www.lispworks.com/reference/HyperSpec/Body/m_defi_2.htm