MstNumericAlgebra

object MstNumericAlgebra : NumericAlgebra<MST>

Algebra over MST nodes.

Functions

binaryOperation
Link copied to clipboard
common
open fun binaryOperation(operation: String, left: MST, right: MST): MST
Dynamically invokes a binary operation with the certain name.
binaryOperationFunction
Link copied to clipboard
common
open override fun binaryOperationFunction(operation: String): (left: MST, right: MST) -> MST.Binary
Dynamically dispatches a binary operation with the certain name.
bindSymbol
Link copied to clipboard
common
open override fun bindSymbol(value: String): Symbol
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): Symbol
Wraps a raw string to T object.
leftSideNumberOperation
Link copied to clipboard
common
open fun leftSideNumberOperation(operation: String, left: Number, right: MST): MST
Dynamically invokes a binary operation with the certain name with numeric first argument.
leftSideNumberOperationFunction
Link copied to clipboard
common
open fun leftSideNumberOperationFunction(operation: String): (left: Number, right: MST) -> MST
Dynamically dispatches a binary operation with the certain name with numeric first argument.
number
Link copied to clipboard
common
open override fun number(value: Number): MST.Numeric
Wraps a number to T object.
rightSideNumberOperation
Link copied to clipboard
common
open fun rightSideNumberOperation(operation: String, left: MST, right: Number): MST
Dynamically invokes a binary operation with the certain name with numeric second argument.
rightSideNumberOperationFunction
Link copied to clipboard
common
open fun rightSideNumberOperationFunction(operation: String): (left: MST, right: Number) -> MST
Dynamically dispatches a binary operation with the certain name with numeric first argument.
unaryOperation
Link copied to clipboard
common
open fun unaryOperation(operation: String, arg: MST): MST
Dynamically invokes a unary operation with the certain name.
unaryOperationFunction
Link copied to clipboard
common
open override fun unaryOperationFunction(operation: String): (arg: MST) -> MST.Unary
Dynamically dispatches a unary operation with the certain name.

Sources

common source
Link copied to clipboard