Skip to content

Commit

Permalink
Use overloaded method
Browse files Browse the repository at this point in the history
  • Loading branch information
FourteenBrush committed Sep 30, 2023
1 parent 49d7c8f commit cec0ce1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static double parse(String input, ExecutionEnv env) {
* @see #insertFunction(String, int, int, ToDoubleFunction)
*/
public static void insertFunction(String functionName, DoubleSupplier fn) {
insertSymbol(new FunctionCallSite(functionName, 0, ctx -> fn.getAsDouble()));
getDefaultEnv().insertFunction(functionName, fn);
}

/**
Expand Down

0 comments on commit cec0ce1

Please sign in to comment.