Table of Contents

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

ResolvedImport

Methods

Build(Table[])

Tables -> List

public static Table Build(Table[] t)

Parameters

t Table[]

Returns

Table

Extract(Table)

List -> Tables

public static Table[] Extract(Table lst)

Parameters

lst Table

Returns

Table[]

Merge(params Table[])

Tables -> List

public static Table Merge(params Table[] lsts)

Parameters

lsts Table[]

Returns

Table

addTab(Table, Table)

Add table to the end of the list

public static Table addTab(Table self, Table tab)

Parameters

self Table
tab Table

Returns

Table

containsTab(Table, Table)

Check if list contains table

public static bool containsTab(Table self, Table tab)

Parameters

self Table
tab Table

Returns

bool

delTab(Table, int)

Delete table from list at index

public static Table delTab(Table self, int index)

Parameters

self Table
index int

Returns

Table

flattenLst(Table)

Flatten all tables into one table

public static Table flattenLst(Table self)

Parameters

self Table

Returns

Table

getTab(Table, int)

Get table at index

public static Table getTab(Table self, int index)

Parameters

self Table
index int

Returns

Table

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

self Table
tabIndex int
elemIndex int

Returns

Table

indexOfTab(Table, Table)

Get index of table or -1 if not contained

public static int indexOfTab(Table self, Table tab)

Parameters

self Table
tab Table

Returns

int

insertTab(Table, int, Table)

Insert table at index

public static Table insertTab(Table self, int index, Table tab)

Parameters

self Table
index int
tab Table

Returns

Table

isLst(Table)

Test if a table is a valid list

public static Table isLst(Table self)

Parameters

self Table

Returns

Table

lstLen(Table)

Get length of the list (number of tables)

public static int lstLen(Table self)

Parameters

self Table

Returns

int

mergeLst(Table, Table)

Merge 2 lists

public static Table mergeLst(Table lst1, Table lst2)

Parameters

lst1 Table
lst2 Table

Returns

Table

newLst()

Creates a new list

public static Table newLst()

Returns

Table

setTab(Table, int, Table)

Set table at index

public static Table setTab(Table self, int index, Table tab)

Parameters

self Table
index int
tab Table

Returns

Table

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

self Table
tabIndex int
elemIndex int
element Table

Returns

Table

tabLen(Table, int)

Get length of table at index

public static int tabLen(Table self, int index)

Parameters

self Table
index int

Returns

int