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(s):

Name Type Description
table table | dict (raw: table; index: null | long[])

Returns:

Name Type Description
<returns> table

.gg.tbl.at

Index into a table abstraction by relative index

Parameter(s):

Name Type Description
table table | dict (raw: table; index: null | long[])
indices long[]

Returns:

Name Type Description
<returns> table

.gg.tbl.box

Box a table if it is not already boxed

Parameter(s):

Name Type Description
t table | dict (raw: table; index: null | long[])

Returns:

Name Type Description
<returns> dict
<returns>.raw table
<returns>.index null | long[]

.gg.tbl.colnames

Return the columns names of the table

Parameter(s):

Name Type Description
table table | dict (raw: table; index: null | long[])

Returns:

Name Type Description
symbol[] column names

.gg.tbl.column

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

Parameter(s):

Name Type Description
table table | dict (raw: table; index: null | long[])
column symbol column name

Returns:

Name Type Description
any[] indexed column values

.gg.tbl.indices

Return the indices of the visible table

Parameter(s):

Name Type Description
table table | dict (raw: table; index: null | long[])

Returns:

Name Type Description
long[]

.gg.tbl.indicesOf

Return the indices of a given value from a given table

Parameter(s):

Name Type Description
table table | dict (raw: table; index: null | long[])
column symbol
val any

Returns:

Name Type Description
long[]

.gg.tbl.isempty

Return whether a table is empty

Parameter(s):

Name Type Description
table table | dict (raw: table; index: null | long[])

Returns:

Name Type Description
boolean

.gg.tbl.metainfo

Return the meta for a table

Parameter(s):

Name Type Description
table table | dict (raw: table; index: null | long[])

Returns:

Name Type Description
<returns> table

.gg.tbl.metatype

Return the meta letter for a column in a table

Parameter(s):

Name Type Description
table table | dict (raw: table; index: null | long[])
column symbol

Returns:

Name Type Description
char

.gg.tbl.new

Create a new table abstraction from a source table

Parameter(s):

Name Type Description
raw table

Returns:

Name Type Description
<returns> dict
<returns>.raw table
<returns>.index null | long[]

.gg.tbl.nrecords

Return the count of the table

Parameter(s):

Name Type Description
table table | dict (raw: table; index: null | long[])

Returns:

Name Type Description
long

.gg.tbl.rindex

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

Parameter(s):

Name Type Description
table table | dict (raw: table; index: null | long[])
index long[]

Returns:

Name Type Description
<returns> dict
<returns>.raw table
<returns>.index null | long[]

.gg.tbl.unbox

Get the source table out of an abstraction

Parameter(s):

Name Type Description
table table | dict (raw: table; index: null | long[])

Returns:

Name Type Description
<returns> table