BooleanAlgebra

object BooleanAlgebra : LogicAlgebra<Boolean>

An implementation of LogicAlgebra for primitive booleans

Functions

and
Link copied to clipboard
common
open infix override fun Boolean.and(other: Boolean): Boolean
Logic 'and'
binaryOperation
Link copied to clipboard
common
open override fun binaryOperation(operation: String, left: Boolean, right: Boolean): Boolean
Dynamically invokes a binary operation with the certain name.
binaryOperationFunction
Link copied to clipboard
common
open override fun binaryOperationFunction(operation: String): (left: Boolean, right: Boolean) -> Boolean
Dynamically dispatches a binary operation with the certain name.
bindSymbol
Link copied to clipboard
common
open fun bindSymbol(value: String): Boolean
The same as bindSymbolOrNull but throws an error if symbol could not be bound
bindSymbolOrNull
Link copied to clipboard
common
open override fun bindSymbolOrNull(value: String): Boolean?
Wraps a raw string to T object.
const
Link copied to clipboard
common
open override fun const(boolean: Boolean): Boolean
Represent constant Boolean as T
not
Link copied to clipboard
common
open operator override fun Boolean.not(): Boolean
Logic 'not'
or
Link copied to clipboard
common
open infix override fun Boolean.or(other: Boolean): Boolean
Logic 'or'
unaryOperation
Link copied to clipboard
common
open override fun unaryOperation(operation: String, arg: Boolean): Boolean
Dynamically invokes a unary operation with the certain name.
unaryOperationFunction
Link copied to clipboard
common
open override fun unaryOperationFunction(operation: String): (arg: Boolean) -> Boolean
Dynamically dispatches a unary operation with the certain name.
xor
Link copied to clipboard
common
open infix override fun Boolean.xor(other: Boolean): Boolean
Logic 'xor'

Sources

common source
Link copied to clipboard