Skip to content

Table wrapper

.gg.tbl.apply

If given a table, return the table. If given a tbl.ty, return the proper subset of the table defined in the type.

Parameter:

Name Type Description
table table | .gg.tbl.ty

Returns:

Type Description
table

.gg.tbl.at

Index into a table abstraction by relative index

Parameters:

Name Type Description
table table | .gg.tbl.ty
indices long[]

Returns:

Type Description
table

.gg.tbl.box

Box a table if it is not already boxed

Parameter:

Name Type Description
t table | .gg.tbl.ty

Returns:

Type Description
.gg.tbl.ty

.gg.tbl.colnames

Return the columns names of the table

Parameter:

Name Type Description
table table | .gg.tbl.ty

Returns:

Type Description
symbol[] column names

.gg.tbl.column

Return the column from a table at any indices specified by the abstraction

Parameters:

Name Type Description
table table | .gg.tbl.ty
column symbol column name

Returns:

Type Description
any[] indexed column values

.gg.tbl.indices

Return the indices of the visible table

Parameter:

Name Type Description
table table | .gg.tbl.ty

Returns:

Type Description
long[]

.gg.tbl.indicesOf

Return the indices of a given value from a given table

Parameters:

Name Type Description
table table | .gg.tbl.ty
column symbol
val any

Returns:

Type Description
long[]

.gg.tbl.isempty

Return whether a table is empty

Parameter:

Name Type Description
table table | .gg.tbl.ty

Returns:

Type Description
boolean

.gg.tbl.metainfo

Return the meta for a table

Parameter:

Name Type Description
table table | .gg.tbl.ty

Returns:

Type Description
table

.gg.tbl.metatype

Return the meta letter for a column in a table

Parameters:

Name Type Description
table table | .gg.tbl.ty
column symbol

Returns:

Type Description
char

.gg.tbl.new

Create a new table abstraction from a source table

Parameter:

Name Type Description
raw table

Returns:

Type Description
.gg.tbl.ty

.gg.tbl.nrecords

Return the count of the table

Parameter:

Name Type Description
table table | .gg.tbl.ty

Returns:

Type Description
long

.gg.tbl.onLoad

.gg.tbl.rindex

Set the index list on the table abstraction with the given relative indices

Parameters:

Name Type Description
table table | .gg.tbl.ty
index long[]

Returns:

Type Description
.gg.tbl.ty

.gg.tbl.transform

Return whether a table is meant to be transformed or not

Parameter:

Name Type Description
table table | .gg.tbl.ty

Returns:

Type Description
boolean

.gg.tbl.unbox

Get the source table out of an abstraction

Parameter:

Name Type Description
table table | .gg.tbl.ty

Returns:

Type Description
table