org.matheclipse.core.generic
Class BinaryBindIth1st
- java.lang.Object
-
- org.matheclipse.core.generic.BinaryBindIth1st
-
- All Implemented Interfaces:
- IUnaryIndexFunction<IExpr,IExpr>
public class BinaryBindIth1st extends java.lang.Object implements IUnaryIndexFunction<IExpr,IExpr>
Clone a given AST and set the i-th argument of the new AST toargin theapplymethod.
-
-
Constructor Summary
Constructors Constructor and Description BinaryBindIth1st(IAST constant1, IAST constant2)Theconstant1andconstant2AST will be cloned in theapplymethod.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description IExprapply(int index, IExpr firstArg)Clone the given AST and set the i-th argument of the new AST toarg.
-
-
-
Constructor Detail
-
BinaryBindIth1st
public BinaryBindIth1st(@Nonnull IAST constant1, @Nonnull IAST constant2)Theconstant1andconstant2AST will be cloned in theapplymethod.- Parameters:
constant1- a "template AST" with all arguments set with a predefined value.constant2- a "template AST" with all arguments set with a predefined value.
-
-
Method Detail
-
apply
public IExpr apply(int index, IExpr firstArg)
Clone the given AST and set the i-th argument of the new AST toarg.- Specified by:
applyin interfaceIUnaryIndexFunction<IExpr,IExpr>- Parameters:
index- the i-th index should be usedfirstArg- the i-th argument in the new AST- Returns:
- The resulting object.
-
-
DMelt 3.0 © DataMelt by jWork.ORG