aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.48 - [lpop] Built-In

Mnemonic aid: lpop for List POP item from list

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

Pops the last item off the list, or the item specified by the index:


[lpop listName(,index)]

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

abcd
d
abc
b
ac
abcd d abc b ac

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