dynamic string names



Hello,

> I would like to do something like
> 
> f(q):= " 'q' ";
> 
> then type
> 
> f(p);
> 
> and have it print
> 
> " 'p' "
> 
> instead of
> 
> " 'q' "
> 
> Any ideas will be appreciated.


(%i1) f(p):= sconcat(" '", p, "' ")$
(%i2) f(torero);
(%o2)                              'torero'

hth

-- 
Mario Rodriguez Riotorto
www.biomates.net