string to identifier



Actually, concat with a Maxima symbol returns a Maxima symbol (interned):

           concat('list,123) => list123

But usually when users as for functionality like this, they would be better
off using named arrays or simply lists.

                   -s

On Sat, Jan 21, 2012 at 16:01, Richard Fateman <fateman at eecs.berkeley.edu>wrote:

> On 1/21/2012 12:51 PM, Adam Majewski wrote:
>
>> How can I convert string to identifier ?
>>
>> I would like to make a few list for draw package :
>> list1, list2 ...
>>
>> for Denominator:1 thru DenominatorMax step 1 do
>> (
>>  name:concat("list",string(**Denominator)),
>>  /* here I should convert string name to identier */
>>  name:Givelist /* my function */
>> );
>>
>>  try
> ?intern(concat("list", 123));
>
> ______________________________**_________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/**mailman/listinfo/maxima<http://www.math.utexas.edu/mailman/listinfo/maxima>;
>