This is the "am I missing something obvious?" kind of question.
I would like to use backquotes in some way to make a value appear in a list only if it's not nil. So, for instance, given
'(1 2 3) if
'(1 3) if
x is nil. The following form will do the trick, but it looks convoluted:
`(1 ,@(if x (list x)) 3)
How can I do this another way, e.g., one that looks simpler? Obviously, I'm not interested in a solution using list functions.