Add bitwise operations to scarpet (#1094)
This commit is contained in:
1 parent
b93e3238b7
commit
b935fadadf
5 files changed
+105
-2
No files matched your search
@@ -468,6 +468,12 @@ public class Expression
|
||||
addUnaryFunction(name, (v) -> new NumericValue(fun.apply(NumericValue.asNumber(v).getDouble())));
|
||||
}
|
||||
|
||||
public void addMathematicalBinaryIntFunction(String name, BiFunction<Long, Long, Long> fun)
|
||||
{
|
||||
addBinaryFunction(name, (w, v) ->
|
||||
new NumericValue(fun.apply(NumericValue.asNumber(w).getLong(), NumericValue.asNumber(v).getLong())));
|
||||
}
|
||||
|
||||
public void addMathematicalBinaryFunction(String name, BiFunction<Double, Double, Double> fun)
|
||||
{
|
||||
addBinaryFunction(name, (w, v) ->
|
||||
|
||||
Reference in new issue
Block a user