Updates the argument list without changing the node kind.
Does nothing for non-node
nodes.
Equations
- (Lean.Syntax.node info k args_1).setArgs args = Lean.Syntax.node info k args
- stx.setArgs args = stx
Instances For
Updates the i
'th argument of the syntax.
Does nothing for non-node
nodes, or if i
is out of bounds of the node list.
Equations
- (Lean.Syntax.node info k args).setArg i arg = Lean.Syntax.node info k (args.setIfInBounds i arg)
- stx.setArg i arg = stx