aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 

4.62 - [cmap] Built-In

Mnemonic aid: cmap for Character MAP

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

This built-in creates a 256-entry list of all the possible 8-bit characters mapped directly to the list index. This allows re-mapping of any of the characters on one string to arbitrary other strings using  [translate] . Simple transposition ciphers, easily generated sequences of format characters, all are easily built using this capability:

[cmap listName]

[cmap list1]
[e list1,65]
[lset list1,65,!]
[translate list1,Area 51]

!rea 51
A !rea 51

Other built-ins used here:  [e] ,  [lset]  and  [translate] 

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