Join Slack
is there any way to pass around a reference to an operator, like `<` or `>=` like it was a fun...
# general-advice
j
JasonB
07/16/2024, 5:49 PM
is there any way to pass around a reference to an operator, like
<
or
>=
like it was a function?
c
CLOVIS
07/17/2024, 1:48 PM
Not AFAIK, because these operators aren't really functions, they're just sugar for a
compareTo
call
4
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by