aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.47 - [lpush] Built-In

Mnemonic aid: lppush for List PUSH item onto list

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

Pushes an item onto the list as the last item:


[lpush listName(,index)]

[list list1,a,b,c,d]
[dlist list1]
[lpush list1,e]
[lpop list1]
[dlist list1]
[lpop list1,1]
[dlist list1]

abcd
e
abcd
b
acd
abcd e abcd b acd

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