User Tools

Site Tools


4rpl:commands:tablen

This is an old revision of the document!


Index

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 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

Index

4rpl/commands/tablen.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)