Hello,
I was wondering if there is a way to pass an operator (like >, =< etc) as a parameter to a function.
Since e.g. comparison operators are translated to a.compareTo(b) function calls how is it possible to pass the actual operator in a function like:
fun someFunction(operator: Int.(Int) -> Boolean)
d
diesieben07
02/08/2019, 8:57 AM
There is no dedicated operator function for the comparison operators, they use