public class BinaryBindIth1st extends java.lang.Object implements IUnaryIndexFunction<IExpr,IExpr>
arg
in
the apply
method.Modifier and Type | Field and Description |
---|---|
protected IAST |
fConstant1 |
protected IAST |
fConstant2 |
Constructor and Description |
---|
BinaryBindIth1st(IAST constant1,
IAST constant2)
The
constant1 and constant2 AST will be cloned in the
apply method. |
Modifier and Type | Method and Description |
---|---|
IExpr |
apply(int index,
IExpr firstArg)
Clone the given AST and set the i-th argument of the new AST to
arg
. |
public BinaryBindIth1st(IAST constant1, IAST constant2)
constant1
and constant2
AST will be cloned in the
apply
method.constant1
- a "template AST" with all arguments set with a
predefined value.constant2
- a "template AST" with all arguments set with a
predefined value.public IExpr apply(int index, IExpr firstArg)
arg
.apply
in interface IUnaryIndexFunction<IExpr,IExpr>
index
- the i-th index should be usedfirstArg
- the i-th argument in the new AST