[NTG-context] Data into arrays in Metapost

Taco Hoekwater taco at elvenkind.com
Fri Aug 12 10:23:46 CEST 2005



David Arnold wrote:
> Hi,
> 
> Is there a way to read an entire data set into an array in Metpost, 
> something like:
> 
> numeric coeffs[];
> coeffs:=[1,2,3,4,5];

Not like this. You need to write a loop.  Metaposts variables are
not really arrays, merely objects with composite names of which
the sub-parts are allowed to be numeric expressions.

Taco



More information about the ntg-context mailing list