Alexander Burger <[email protected]> writes:
Hi Alex,
>> ,--------------------------------------------
>> | (de hashtag (Lst)
>> | ... return Lst with leading hashtag... )
>> `--------------------------------------------
>> ...
>> ,------------------------
>> | "#(\"A\" 0 1 (:parent 1))"
>> `------------------------
>>
>> Now I tried 'pack', 'glue', 'text' - to no avail.
>>
>> What must function 'hashtag' do to return (as a string) argument Lst
>> with # attached to the opening parenthesis?
>
> I'm not sure if I understood the question, but perhaps 'sym' does what
> you want:
>
> : (de hashtag (Lst)
> (pack "#" (sym Lst)) )
>
> : (hashtag '("A" 0 1 (:parent 1)))
> -> "#(\"A\" 0 1 (:parent 1))"
Yes, perfect! Thanks.
I knew it could be done somehow...
--
cheers,
Thorsten
--
UNSUBSCRIBE: mailto:[email protected]?subject=Unsubscribe