Michael Somos on Sun, 15 Dec 2002 16:05:11 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Vec vs Vecsmall


pari-dev,

Ilya wrote :

> Chicken and eggs.  How to *populate* such an array? 

chr=vector(255,n,"");
chr[32]=" ";
chr[33]="!";
chr[34]="\"";
chr[35]="#";
chr[36]="$";
chr[37]="%";
chr[38]="&";
...
chr[122]="z";
chr[123]="{";
chr[124]="|";
chr[125]="}";
chr[126]="~";

which needs to be written one time only.

> And what to do with Unicode values?

What do you suggest we do with them? As far as I know, currently
there is no Unicode capability in PARI-GP. Shalom, Michael