User Tools

Site Tools


4rpl:commands:createlist

This is an old revision of the document!


Index
Lists

CreateList

CreateList ->list

Description

Creates an empty list and pushes it onto the stack. If saved in a variable, then whatever was in that variable previously gets dropped (and garbage collected) and replaced with the new list just created.

Examples

if (CreateList GetListCount eq0)
    Trace("And lo, the list was empty.")
endif
 
createlist ->list
1 ->list[0]
4 ->list[1]
9 ->list[2]
trace(<-list)

Index

4rpl/commands/createlist.1615229734.txt.gz · Last modified: 2021/03/08 13:55 by Karsten75