aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.49 - [lset] Built-In

Mnemonic aid: lset for List SET item

See also:  [aisort] ,  [append] ,  [asort] ,  [clearl] ,  [cmap] ,  [dlist] ,  [e] ,  [hmap] ,  [isort] ,  [lcc] ,  [lcopy] ,  [lhsort] ,  [list] ,  [ljoin] ,  [llen] ,  [lpop] ,  [lslice] ,  [lsplit] ,  [lsub] ,  [ltol]  and  [translate] 

Changes the list item specified by the index to the provided item:


[lset listName,index,item]

[list list1,a,b,c,d]
[dlist list1]
[lset list1,1,x]
[dlist list1]

abcd
axcd
abcd axcd

Other built-ins used here:  [dlist]  and  [list] 

Keyboard Navigation
, Previous Page . Next Page t TOC i Index

Valid HTML 4.01 Loose
 

This manual was generated with wtfm
wtfm uses aa_macro and SqLite
aa_macro uses Python 2.7