Class StdList
- Namespace
- TabScript
- Assembly
- TableScript.dll
Lists are several tables expressed as one, compacted together. All functions have the same name in the code and in here
public static class StdList
- Inheritance
-
StdList
- Inherited Members
Properties
AllFunctions
public static (Delegate func, string description)[] AllFunctions { get; }
Property Value
- (Delegate func, string description)[]
AsImport
public static ResolvedImport AsImport { get; }
Property Value
Methods
Build(Table[])
Tables -> List
public static Table Build(Table[] t)
Parameters
tTable[]
Returns
Extract(Table)
List -> Tables
public static Table[] Extract(Table lst)
Parameters
lstTable
Returns
- Table[]
Merge(params Table[])
Tables -> List
public static Table Merge(params Table[] lsts)
Parameters
lstsTable[]
Returns
addTab(Table, Table)
Add table to the end of the list
public static Table addTab(Table self, Table tab)
Parameters
Returns
containsTab(Table, Table)
Check if list contains table
public static bool containsTab(Table self, Table tab)
Parameters
Returns
delTab(Table, int)
Delete table from list at index
public static Table delTab(Table self, int index)
Parameters
Returns
flattenLst(Table)
Flatten all tables into one table
public static Table flattenLst(Table self)
Parameters
selfTable
Returns
getTab(Table, int)
Get table at index
public static Table getTab(Table self, int index)
Parameters
Returns
getTabElem(Table, int, int)
Get element at index n2 of table at index n1
public static Table getTabElem(Table self, int tabIndex, int elemIndex)
Parameters
Returns
indexOfTab(Table, Table)
Get index of table or -1 if not contained
public static int indexOfTab(Table self, Table tab)
Parameters
Returns
insertTab(Table, int, Table)
Insert table at index
public static Table insertTab(Table self, int index, Table tab)
Parameters
Returns
isLst(Table)
Test if a table is a valid list
public static Table isLst(Table self)
Parameters
selfTable
Returns
lstLen(Table)
Get length of the list (number of tables)
public static int lstLen(Table self)
Parameters
selfTable
Returns
mergeLst(Table, Table)
Merge 2 lists
public static Table mergeLst(Table lst1, Table lst2)
Parameters
Returns
newLst()
Creates a new list
public static Table newLst()
Returns
setTab(Table, int, Table)
Set table at index
public static Table setTab(Table self, int index, Table tab)
Parameters
Returns
setTabElem(Table, int, int, Table)
Set element at index n2 of table at index n1
public static Table setTabElem(Table self, int tabIndex, int elemIndex, Table element)
Parameters
Returns
tabLen(Table, int)
Get length of table at index
public static int tabLen(Table self, int index)