Re: 2.6 feature request: foreach (off topic)
- Posted by "Juergen Luethje" <j.lue at gmx.de> Jul 16, 2005
- 461 views
Me wrote: <snip> > With Euphoria, we don't need place-holders. Of course we use something > like a[x][y] to access the data. We just have to take a little more care > of the indexes, when our data have the form of a "triangle" rather than > a "rectangle": > > a = { > {12}, > { 7, 9}, > {15, 6,14} > } > > > When an array with n*n elements is needed in BASIC, we only need n! > elements in Euphoria. Oooops! Fortunately, n! is wrong. Of course it must be n*(n+1)/2 instead. <snip> Regards, Juergen