* Data into arrays in Metapost
@ 2005-08-11 23:25 David Arnold
2005-08-12 8:23 ` Taco Hoekwater
0 siblings, 1 reply; 2+ messages in thread
From: David Arnold @ 2005-08-11 23:25 UTC (permalink / raw)
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];
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Data into arrays in Metapost
2005-08-11 23:25 Data into arrays in Metapost David Arnold
@ 2005-08-12 8:23 ` Taco Hoekwater
0 siblings, 0 replies; 2+ messages in thread
From: Taco Hoekwater @ 2005-08-12 8:23 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-12 8:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-11 23:25 Data into arrays in Metapost David Arnold
2005-08-12 8:23 ` Taco Hoekwater
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).