~~NOTOC~~ <=[[4rpl:start| Index]] \\ <=[[4rpl:start#tables| Tables]] ====== TableN ====== TableN(<-N) ->table ===== Description ===== Creates a Table and populates it with N items from the stack. The N items of the stack will be added to a newly created table. The stack will be treated as pairs of data consisting of strings and values. N represents each PAIR of data. So for two items on the stack, a key and a value, set N to 1. ===== Examples ===== # Take the three pairs from the stack and add to the table. TableN("Key0" "Val0" "Key1" "Val1" "Key2" "Val2" 3) ->table # Take the top two pairs from the stack and add to the table. # The bottom most pair will be left on the stack underneath the newly created table TableN("Key0" "Val0" "Key1" "Val1" "Key2" "Val2" 2) ->table <=[[4rpl:start| Index]]