Access:

LIST ELEMENTS GET

 

 

 

 

 

( °is the left-shift of the Nkey).

Input/Output:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Level 2/Argument 1

Level 1/Argument 2

 

Level 1/Item 1

 

 

 

 

 

 

 

 

 

 

 

[[ matrix ]]

 

nposition

 

 

zget

 

 

[[ matrix ]]

{ nrow, mcolumn

}

zget

 

 

'name

 

'

 

n

position

 

 

z

get

 

 

 

matrix

 

 

 

 

 

 

 

 

'name

 

'

{ n

row

, m

column

}

z

get

 

 

 

matrix

 

 

 

 

 

 

 

[ vector ]

 

nposition

 

 

zget

 

 

[ vector ]

{nposition }

 

zget

 

 

'namevector'

 

nposition

 

 

zget

 

 

'namevector'

{nposition }

 

zget

 

 

{ list }

 

nposition

 

 

objget

 

 

{ list }

{nposition }

 

objget

 

 

'name

'

 

n

position

 

 

obj

get

 

 

 

 

list

 

 

 

 

 

 

 

 

 

'name

'

{n

position

}

 

obj

get

 

 

 

 

list

 

 

 

 

 

 

 

 

[[ 2 3

 

Example 1:

7 ][ 3 2 9 ][ 2 1 3 ] { 2 3 } GET returns 9.

Example 2:

[[ 2 3 7 ][ 3 2 9 ][ 2 1 3 ] 8 GET returns 1.

 

 

 

Example 3:

{ A B C D E } { 1 } GET returns 'A'.

 

 

 

See also:

GETI, PUT, PUTI

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

GETI

Command

 

 

 

 

 

 

 

 

 

 

 

 

 

Type:

 

 

 

 

 

 

 

 

 

 

 

 

 

Description:

Get and Increment Index Command: Returns from the argument 1/level 2 array or list (or named

 

array or list) the real or complex number zget or object objget whose position is specified in

 

argument 2/level 1, along with the first (level 2) argument and the next position in that argument.

 

For matrices, the position is incremented in row order.

 

 

 

 

Access:

LIST ELEMENTS GETI

 

 

 

 

 

( °is the left-shift of the Nkey).

Flags:

Index Wrap Indicator (–64)

 

 

 

 

 

 

 

 

 

 

 

Full Command and Function Reference 3-97