Lookig at some old Kotlin code, I notice it was po...
# announcements
l
Lookig at some old Kotlin code, I notice it was possible to write collection extensions infix style. Is there any reason this was removed ?
k
Can you give an example? Like
list filter { ... }
?
l
yeah, it used to work like:
Copy code
val items: ArrayList<xxx> = ArrayList<xxx>()
items add (xxx())
but it used to be in versions like 0.12+, not after 1.0
k
Yikes, I'm happy that got removed simple smile
o
In some early versions any function could be invoked in
infix
form, if it’s of specific shape. We then changed it to require a modifier.
👍 1