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
Table(int)
Initialize Table as number
public Table(int n)
Parameters
nint
Table(string)
Initialize table with single string
public Table(string s)
Parameters
sstring
Table(params string[])
Initialize table with strings
public Table(params string[] ss)
Parameters
ssstring[]
Table(Table)
Clone Table
public Table(Table t)
Parameters
tTable
Properties
False
public static Table False { get; }
Property Value
IsNumber
If it is internally represented as a number
public bool IsNumber { get; }
Property Value
this[int]
Careful! Unsafe
public string this[int index] { get; }
Parameters
indexint
Property Value
Length
public int Length { get; }
Property Value
True
public static Table True { get; }
Property Value
Truthy
If it is considered true
public bool Truthy { get; }
Property Value
contents
Full contents
public IReadOnlyList<string> contents { get; }
Property Value
Methods
Add(string)
Add to end
public void Add(string s)
Parameters
sstring
Add(Table)
Add to end
public void Add(Table t)
Parameters
tTable
AddRange(Table)
Add to end
public void AddRange(Table t)
Parameters
tTable
AsString()
Table -> string
public string AsString()
Returns
Clone()
public Table Clone()
Returns
Contains(Table)
If the Table contains all elements of the Table arg
public bool Contains(Table t)
Parameters
tTable
Returns
EqualTo(Table)
Checking for equality
public bool EqualTo(Table t)
Parameters
tTable
Returns
GetBool(bool)
Returns True or False
public static Table GetBool(bool b)
Parameters
bbool
Returns
GetElem(TabIndex)
Get Element
public Table GetElem(TabIndex ind)
Parameters
indTabIndex
Returns
GetRange(TabIndex, TabIndex)
Get multiple elements
public Table GetRange(TabIndex ind, TabIndex len)
Parameters
Returns
IndexOf(string)
Find index of element
public int IndexOf(string elem)
Parameters
elemstring
Returns
Product(Table)
Cartesian product
public Table Product(Table t)
Parameters
tTable
Returns
RemoveAll(Table)
Remove from Table all elements contained in arg Table
public void RemoveAll(Table t)
Parameters
tTable
RemoveAt(int)
Remove from Table at index
public void RemoveAt(int ind)
Parameters
indint
RemoveSingle(Table)
Remove from Table elements contained in arg Table, only once
public void RemoveSingle(Table t)
Parameters
tTable
Reversed()
Reversed table
public Table Reversed()
Returns
SetElem(TabIndex, Table)
Set element to another Table
public void SetElem(TabIndex ind, Table t)
Parameters
Shuffled()
Randomly shuffled Table
public Table Shuffled()
Returns
SplitToChars()
Table -> Table of length 1 strings
public string[] SplitToChars()
Returns
- string[]
ToString()
Represent in a coder-friendly way
public override string ToString()