You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AviatorEvaluator.defineFunction("max",
"lambda(a,b) -> a > b ? tuple(a, b) : tuple(b, a) end");
Object[] ret = (Object[]) (AviatorEvaluator.execute("max(1,2)")); // 返回数组 [2, 1]assertArrayEquals(newObject[] {2, 1}, ret);
问题一:自定义函数:max(a,b),想知道最后的结果到底是a还是b;a,b可能是表达式。
问题二:在4.0.0-RC版本中为什么新建了env?
The text was updated successfully, but these errors were encountered: