Array manipulations questions

P

Peter Fitzgibbons

------_=_NextPart_001_01C5A2A7.BDAC85C3
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I have an array :

a =3D
[ [10, 11], [20, 21],
[12, 13], [22, 23],
[30, 31], [40, 41],=20
[32, 33], [42, 43] ]

I want to know how to manipulate the array to get :
a.grid(1)
=3D=3D> [10, 11], [12, 13]
A.grid(2)
=3D=3D> [20, 21], [22, 23]
A.grid(3)
=3D=3D> [30, 31], [32, 33]
A.grid(4)
=3D=3D> [40, 41], [42, 43]

B =3D a.grid(1)
=3D=3D> [10, 11], [12, 13]
B[1][1]
=3D=3D> 10
B[2][2]
=3D=3D> 13

A.row(1)
=3D=3D> [10, 11, 20, 21]

A.col(1)
=3D=3D> [10, 12, 30, 32]


Many many thanks for your examples.


Peter J. Fitzgibbons
Applications Manager
Lakewood Homes - "The American Dream Builder"(r)
(e-mail address removed)
(847) 884-8800=20



------_=_NextPart_001_01C5A2A7.BDAC85C3--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top