TinTin++ Mud Client Manual

Command: #list {variable} {option} {argument}

         #list {var} {add} {item}               Add {item} to the list
         #list {var} {clear}                    Empty the given list
         #list {var} {collapse} {separator}     Turn list into a variable
         #list {var} {create} {items}           Create a list using {items}
         #list {var} {delete} {index} {amount}  Delete the item at {index},
                                                the {amount} is optional.
         #list {var} {explode} {separator}      Turn variable into a list
         #list {var} {indexate}                 Index a list table for sorting
         #list {var} {insert} {index} {string}  Insert {string} at given index
         #list {var} {filter} {keep} {remove}   Filter with keep / remove regex
         #list {var} {find} {regex} {variable}  Return the found index
         #list {var} {get} {index} {variable}   Copy an item to {variable}
         #list {var} {numerate}                 Turn a table into a list
         #list {var} {order} {string}           Insert item in numerical order
         #list {var} {shuffle}                  Shuffle the list
         #list {var} {set} {index} {string}     Change the item at {index}
         #list {var} {simplify} {string}        Turn list into a simple list
         #list {var} {size} {variable}          Copy list size to {variable}
         #list {var} {sort} {string}            Insert item in alphabetic order
         #list {var} {tokenize} {string}        Create a character list

         The index should be between +1 and the list's size. You can also give
         a negative value, in which case -1 equals the last item in the list, -2
         the second last, etc.

         When inserting an item a positive index will prepend the item at the
         given index, while a negative index will append the item.

         The add and create options allow using multiple items, as well
         as semicolon separated items.

         A size of 0 is returned for an empty or non-existent list. You can
         directly access the size of a list using &var[].

         You can directly access elements in a list variable using $var[+1],
         $var[+2], $var[-1], etc.

Related: break, continue, foreach, loop, parse, repeat, return and while.