Table of Contents

Class Table

Namespace
TabScript
Assembly
TableScript.dll

Table class, represents a dynamic array of strings. Be careful with its use, its only optimized for the languge itself

public class Table
Inheritance
Table
Inherited Members

Constructors

Table()

Initialize empty Table

public Table()

Table(List<string>)

Initialize Table

public Table(List<string> t)

Parameters

t List<string>

Table(int)

Initialize Table as number

public Table(int n)

Parameters

n int

Table(string)

Initialize table with single string

public Table(string s)

Parameters

s string

Table(params string[])

Initialize table with strings

public Table(params string[] ss)

Parameters

ss string[]

Table(Table)

Clone Table

public Table(Table t)

Parameters

t Table

Properties

False

public static Table False { get; }

Property Value

Table

IsNumber

If it is internally represented as a number

public bool IsNumber { get; }

Property Value

bool

this[int]

Careful! Unsafe

public string this[int index] { get; }

Parameters

index int

Property Value

string

Length

public int Length { get; }

Property Value

int

True

public static Table True { get; }

Property Value

Table

Truthy

If it is considered true

public bool Truthy { get; }

Property Value

bool

contents

Full contents

public IReadOnlyList<string> contents { get; }

Property Value

IReadOnlyList<string>

Methods

Add(string)

Add to end

public void Add(string s)

Parameters

s string

Add(Table)

Add to end

public void Add(Table t)

Parameters

t Table

AddRange(Table)

Add to end

public void AddRange(Table t)

Parameters

t Table

AsString()

Table -> string

public string AsString()

Returns

string

Clone()

public Table Clone()

Returns

Table

Contains(Table)

If the Table contains all elements of the Table arg

public bool Contains(Table t)

Parameters

t Table

Returns

bool

EqualTo(Table)

Checking for equality

public bool EqualTo(Table t)

Parameters

t Table

Returns

bool

GetBool(bool)

Returns True or False

public static Table GetBool(bool b)

Parameters

b bool

Returns

Table

GetElem(TabIndex)

Get Element

public Table GetElem(TabIndex ind)

Parameters

ind TabIndex

Returns

Table

GetRange(TabIndex, TabIndex)

Get multiple elements

public Table GetRange(TabIndex ind, TabIndex len)

Parameters

ind TabIndex
len TabIndex

Returns

Table

IndexOf(string)

Find index of element

public int IndexOf(string elem)

Parameters

elem string

Returns

int

Product(Table)

Cartesian product

public Table Product(Table t)

Parameters

t Table

Returns

Table

RemoveAll(Table)

Remove from Table all elements contained in arg Table

public void RemoveAll(Table t)

Parameters

t Table

RemoveAt(int)

Remove from Table at index

public void RemoveAt(int ind)

Parameters

ind int

RemoveSingle(Table)

Remove from Table elements contained in arg Table, only once

public void RemoveSingle(Table t)

Parameters

t Table

Reversed()

Reversed table

public Table Reversed()

Returns

Table

SetElem(TabIndex, Table)

Set element to another Table

public void SetElem(TabIndex ind, Table t)

Parameters

ind TabIndex
t Table

Shuffled()

Randomly shuffled Table

public Table Shuffled()

Returns

Table

SplitToChars()

Table -> Table of length 1 strings

public string[] SplitToChars()

Returns

string[]

ToString()

Represent in a coder-friendly way

public override string ToString()

Returns

string