Hi Thorsten,

> ,--------------------------------------------
> | (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))"

♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to