Out of interest, what use cases do you have? Just ...
# announcements
k
Out of interest, what use cases do you have? Just things similar to
contains
?
d
fun <T> Iterable<T>.doesNotContain(element: T): Boolean = !contains(element)
and similar things
k
(FYI, there's
x !in list
for that)
d
Thank you but I’m trying to stay away from infix functions at the moment except for few cases.
k
That's not actually an infix function, it's an operator. (hence the
operator fun contains
)
d
You’re right, I mean just from the syntax with spaces.
k
Can I ask why? You're missing out!