Is it possible to create nested arrays of integers in jmol script language?
Here's what I've tried (in the current release version)
$ x=[[111,222],[333,444]]
$ y=x[1]
$ print y
111
222
$ print y[1]
1
I can't really work out why y[1] is 1 and not 111 but I think it must have
something to do with the default treatment of array elements as strings.
Many thanks for any help.
William Lees
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users