table¶
type table < sequence
A table is a set of named arrays. The arrays must have the same length.
meth table(Columns: map): table
Returns a table with the entries from
Columns
. The keys ofColumns
must be strings, the values ofColumns
are converted to arrays usingarray()
if necessary.meth table(Names₁ is Value₁, Value₁, : any, ...): table
Returns a table using
Names
for column names andValues
as column values, converted to arrays usingarray()
if necessary.meth table(): table
Returns an empty table.
meth (Table: table) :: (Name: string, ...): array
Returns the column
Name
fromTable
.meth (Table: table)[Row: integer]: tablerow
Returns the
Row
-th row ofTable
.meth (Table: table)[Name: string, ...]: array
Returns the column
Name
fromTable
.meth (Table: table):delete(Name: string): array
Remove the column
Name
fromTable
and return the value array.meth (Table: table):insert(Names₁ is Value₁, Value₁, : array, ...): table
Insert columns with names from
Names
and valuesValue₁
, ...,Valueₙ
intoTable
.meth (Table: table):insert(Name: string, Value: array): table
Insert the column
Name
with valuesValue
intoTable
.meth (Buffer: string::buffer):append(Value: table)
Appends a representation of
Value
toBuffer
.type table::row < sequence
A row in a table.
meth (Row: table::row) :: (Name: string): any
Returns the value from column
Name
inRow
.meth (Row: table::row)[Name: string]: any
Returns the value from column
Name
inRow
.meth (Buffer: string::buffer):append(Value: table::row)
Appends a representation of
Value
toBuffer
.