3-132 Full Command and Function Reference
Description: Put Element Command: Replaces the object at a specified position (second input) in a specified
array or list (first input) with a specifed object (third input). If the array or list is unnamed,
returns the new array or list.
For matrices, n
position
counts in row order.
Access: !°
LIST ELEMENTS PUT ( °is the left-shift of the Nkey).
Input/Output:
Level 3/Argument 1 Level 2/Argument 2 Level 1/Argument 3 Level 1/Item 1
[[ matrix ]]
1
n
position
z
put
→
[[ matrix ]]
2
[[ matrix ]]
1
{ n
row
m
col
} z
put
→
[[ matrix ]]
2
'name
matrix
' n
position
z
put
→
'name
matrix
' { n
row
m
col
} z
put
→
[ vector ]
1
n
position
z
put
→
[ vector ]
2
[ vector ]
1
{ n
position
} z
put
→
[ vector ]
2
'name
vector
' n
position
z
put
→
'name
vector
' { n
position
} z
put
→
{ list
}
1
n
position
obj
put
→
{ list }
2
{ list }
1
{ n
position
} obj
put
→
{ list }
2
'name
list
' n
position
obj
put
→
'name
list
' { n
position
} obj
put
→
See also: GET, GETI, PUTI
PUTI
Type: Command
Description: Put and Increment Index Command: Replaces the object at a specified position (second input) in
a specified array or list (first input) with a specifed object (third input), returning a new array or
list together with the next position in the array or list.
For matrices, the position is incremented in row order.
Unlike PUT, PUTI returns a named array or list. This enables a subsequent execution of PUTI at
the next position of a named array or list.
Access: !°
LIST ELEMENTS PUTI ( °is the left-shift of the Nkey).
Flags: Index Wrap Inidicator (-64)