Boolean class
OperationsReturns the number of columns in the matrix
function : Columns(matrix:Bool[,]) ~ Int
Name | Type | Description |
---|---|---|
matrix | Bool[,] | matrix to process |
Type | Description |
---|---|
Int | number of columns in the matrix |
Prints an error boolean value
function : Error() ~ Nil
Prints an error boolean value with a newline
function : ErrorLine() ~ Nil
Pseudo random coin flip
function : Flip() ~ Bool
Type | Description |
---|---|
Bool | true or false |
Prints a boolean value
function : Print() ~ Nil
Prints a boolean value with a newline
function : PrintLine() ~ Nil
Returns the number of rows in the matrix
function : Rows(matrix:Bool[,]) ~ Int
Name | Type | Description |
---|---|---|
matrix | Bool[,] | matrix to process |
Type | Description |
---|---|
Int | number of rows in the matrix |
Formats the boolean value into a string
function : native : ToString() ~ String
Type | Description |
---|---|
String | string value |
Formats the boolean array into a string
function : native : ToString(b:Bool[]) ~ String
Name | Type | Description |
---|---|---|
b | Bool[] | boolean array |
Type | Description |
---|---|
String | string value |
Returns a string representation of the boolean array
function : ToString(v:Bool[,]) ~ String
Name | Type | Description |
---|---|---|
v | Bool[,] | boolean array |
Type | Description |
---|---|
String | string representation of the boolean array |