booleanCol
The booleanCol
method creates a column containing Java primitive boolean values.
note
This method is commonly used with newTable
to create tables.
Syntax
booleanCol(name, data...)
Parameters
Parameter | Type | Description |
---|---|---|
name | String | The name of the new column. |
data | boolean... | The column values. |
Returns
A ColumnHolder
.
Example
The following examples use newTable
to create a table with a single column of booleans named Booleans
.
result = newTable(
booleanCol("Booleans", true, false, false, true)
)
- result