I think using (list 'a (list (list V))) is idiomatic and clear.

John

On Dec 23, 2016 4:02 AM, "dean" <deangwillia...@gmail.com> wrote:

> I noted that '  let you write as many nested parens as you wanted but
> precluded any evaluation in the middle. V was just there to ensure that
> EVALUATION was required to get at "some_str" i.e. to test any solution.
> Irrespective....thank you for 'fill
>
> On 23 December 2016 at 08:46, Joh-Tob Schäg <johtob...@gmail.com> wrote:
>
>> What is the purpose of the symbol V? Is seems like dead code to me.
>> Please check your code for correctness before asking question. The first
>> line does not make any sense for another reason.
>>
>> If you want to have a the list (a (("String"))) use:
>> (setq L (append L '((("String")))))
>>
>> I assume you wanted to have the value of V in there instead of a constant
>> "String". Have a look at 'fill in this case.
>>
>> 2016-12-22 21:09 GMT+01:00 dean <deangwillia...@gmail.com>:
>>
>>> What is the right way to do this...
>>> (setq V "some_str")
>>> (setq L '(a))
>>> (setq L (append L ???))
>>> --> (  a   ((some_str))    )
>>> i.e. I can do '((some_str))
>>> but wonder if there's an easy way to use '(()) AND have an evaluated
>>> value in the middle
>>> i.e quote makes specifying any level of parens easy but doesn't let my
>>> use an evaluated value in the middle.
>>> Sorry if this is a dumb question
>>>
>>
>>
>

Reply via email to