org.matheclipse.core.generic
Class UnaryBindIth
- java.lang.Object
-
- org.matheclipse.core.generic.UnaryBindIth
-
- All Implemented Interfaces:
- IUnaryIndexFunction<IExpr,IExpr>
public class UnaryBindIth 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 UnaryBindIth(IAST constant)TheconstantAST will be cloned in theapplymethod.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description IExprapply(int index, IExpr arg)Clone the given AST and set the i-th argument of the new AST toarg.
-
-
-
Constructor Detail
-
UnaryBindIth
public UnaryBindIth(IAST constant)
TheconstantAST will be cloned in theapplymethod.- Parameters:
constant- a "template AST" with all arguments set with a predefined value.
-
-
Method Detail
-
apply
public IExpr apply(int index, IExpr arg)
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 usedarg- the i-th argument in the new AST- Returns:
- The resulting object.
-
-
DMelt 3.0 © DataMelt by jWork.ORG