Yoav Zibin <yoav.zi...@...> writes:
 
> I can't seem to find that part in the language specification Version 2.0.3.
> What page?


I just realized that I was looking at Version 2.0.1 (dated Jan 13, 2010) of the 
document (p. 131). The mistake seems to have been corrected in the newer doc. 
Thanks for pointing out.

> Yes, the correct type is Array[Int].
> Array has a property "rank" which is the number of dimensions.
> So a more exact type in your example would be:
> Array[Int]{rank==2}



 
> On Mon, May 17, 2010 at 3:14 PM, Jeeva Paudel <je...@...> wrote:
> 
> >
> > When I try the following, things seem to be fine:
> >        val data2 : Array[Int] = Array.make[Int]([1..1000,1..1000]->here,
> > ((i,j):Point) => i*j);
> >
> > Is it the correct way of dealing with multi-dimensional arrays?

> 





------------------------------------------------------------------------------

_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to