v2025.7.0
All Bundles

Bool

Boolean class

Operations

Columns

Returns the number of columns in the matrix

function : Columns(matrix:Bool[,]) ~ Int

Parameters

NameTypeDescription
matrixBoolmatrix to process

Return

TypeDescription
Intnumber of columns in the matrix

Error

Prints an error boolean value

function : Error() ~ Nil

ErrorLine

Prints an error boolean value with a newline

function : ErrorLine() ~ Nil

Flip

Pseudo random coin flip

function : Flip() ~ Bool

Return

TypeDescription
Booltrue or false

Print

Prints a boolean value

function : Print() ~ Nil

PrintLine

Prints a boolean value with a newline

function : PrintLine() ~ Nil

Rows

Returns the number of rows in the matrix

function : Rows(matrix:Bool[,]) ~ Int

Parameters

NameTypeDescription
matrixBoolmatrix to process

Return

TypeDescription
Intnumber of rows in the matrix

ToString

Formats the boolean value into a string

function : native : ToString() ~ String

Return

TypeDescription
Stringstring value

ToString

Formats the boolean array into a string

function : native : ToString(b:Bool[]) ~ String

Parameters

NameTypeDescription
bBoolboolean array

Return

TypeDescription
Stringstring value

ToString

Returns a string representation of the boolean array

function : ToString(v:Bool[,]) ~ String

Parameters

NameTypeDescription
vBoolboolean array

Return

TypeDescription
Stringstring representation of the boolean array