Merging symbols in common lisp
I want to insert a char into a list. However, I want to merge this char with the last symbol in the list. With appends and cons the result is always two different symbols. Well, I want one merged symbol to be my result. Example: (XXXX 'a '5) ====> (a5) What I would like to have, instead of: (XXXX 'a '5) ====> (a 5) You cannot "merge symbols" in Lisp. First of all, 5 is not a symbol, but a number. If you want a symbol named "5" you have to type it as |5| (for example). If a function takes the symbol A and symbol |5| , and produces the symbol A5 , it has not merged symbols. It has created a new