[{495.61904761660844,4989.714285714552,0.0,1.0},{895.6190476175398,4989.714285714552,0.0,1.0},{1295.6190476166084,4989.714285714552,0.0,3.0},{1695.6190476175398,4989.714285714552,0.0, 3.0},{2095.6190476166084,4989.714285714552,0.0,3.0}]
how do I access 4989.714285714552 which is 2nd element in first list, and how do I access for example 3.0 which is 4th element in the 3 list
thanks
--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/groups/opt_out.
write the_graph.vertices;
loop v over: the_graph.vertices{
vv <- point(v);
vx<- point(v).x;
vy<- point(v).y;
vz<- point(v).z;
write string("x=") + string(vx) +string(" y=") + string(vy)+string(" z=") + string(vz);
write string(" \n---") + vv +string(" ---\n");
-----
list my_list <- [[495.61904761660844,4989.714285714552,0.0,1.0],[895.6190476175398,4989.714285714552,0.0,1.0],[1295.6190476166084,4989.714285714552,0.0,3.0],[1695.6190476175398,4989.714285714552,0.0, 3.0],[2095.6190476166084,4989.714285714552,0.0,3.0]];
write "my_list[0][1]: " + my_list[0][1];
write "my_list[2][3]: " + my_list[2][3];
--
You will get:
my_list[0][1]: 4989.714285714552
my_list[2][3]: 3.0
Cheers,
Patrick
--
--
--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platfor...@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.