In the level 3 array or list, PUT replaces with zput or objput the object whose position is specified in level 2; if the array or list is unnamed, returns the new array or list.
Level 3 | Level 2 | Level 1 | -> | Level 1 |
---|---|---|---|---|
[[ matrix ]]1 | nposition | zput | -> | [[ matrix ]]2 |
[[ matrix ]]1 | { nrow mcol } | zput | -> | [[ matrix ]]2 |
'namematrix' | nposition | zput | -> | |
'namematrix' | { nrow mcol } | zput | -> | |
[ vector ]1 | nposition | zput | -> | [ vector ]2 |
[ vector ]1 | { nposition } | zput | -> | [ vector ]2 |
'namevector' | nposition | zput | -> | |
'namevector' | { nposition } | zput | -> | |
{ list }1 | nposition | objput | -> | { list }2 |
{ list }1 | { nposition } | objput | -> | { list }2 |
'namelist' | nposition | objput | -> | |
'namelist' | { nposition } | objput | -> |