use of org.matheclipse.core.eval.interfaces.AbstractCoreFunctionEvaluator in project symja_android_library by axkr.
the class F method localBiFunction.
public static IBuiltInSymbol localBiFunction(final String symbolName, BiFunction<IExpr, IExpr, IExpr> function) {
IBuiltInSymbol localBuittIn = new BuiltInSymbol(symbolName, java.lang.Integer.MAX_VALUE);
localBuittIn.setEvaluator(new AbstractCoreFunctionEvaluator() {
@Override
public IExpr evaluate(IAST ast, EvalEngine engine) {
return function.apply(ast.arg1(), ast.arg2());
}
});
return localBuittIn;
}
Aggregations