powered by
The addition of two terms, in an ASTNode.
R6Class object.
R6Class
tangram::ASTNode -> tangram::ASTBranch -> ASTPlus
tangram::ASTNode
tangram::ASTBranch
ASTPlus
data
Just returns the R6 name 'ASTPlus'
left
The node to the left of this node
right
The node to the right of this node
ASTPlus$new()
ASTPlus$terms()
ASTPlus$string()
ASTPlus$clone()
Inherited methods tangram::ASTNode$set_format() tangram::ASTBranch$distribute() tangram::ASTBranch$reduce()
tangram::ASTNode$set_format()
tangram::ASTBranch$distribute()
tangram::ASTBranch$reduce()
new()
Construct a new node that represents addition
ASTPlus$new(left, right)
(ASTNode) Node on the left side of the addition
(ASTNode) Node on the right side of the addition
terms()
Returns a vector of the left and right terms
string()
A reparsable string representation of this node.
clone()
The objects of this class are cloneable with this method.
ASTPlus$clone(deep = FALSE)
deep
Whether to make a deep clone.
ASTPlus$new(ASTVariable$new("x"), ASTVariable$new("y"))$string()
Run the code above in your browser using DataLab