Join Slack
Powered by
what if the `< 1` syntax could be generalised t...
# announcements
o
okkero
02/02/2017, 11:53 AM
what if the
< 1
syntax could be generalised to support all infix functions? Given
infix fun Int.foo(other: Int): Boolean { ... }
, the following could be achieved:
Copy code
when (value) { foo 42 -> ... }
👍 3
🍻 2
Open in Slack
Previous
Next