I am trying to understand what the plus operator m...
# android
f
I am trying to understand what the plus operator means in this Context
z
It’s a Kotlin operator for adding a new item to a list (more precisely, creating a new list that contains the elements of the original list and the new item) See https://kotlinlang.org/docs/collection-plus-minus.html
👍 2
j
In this context it basically works the same way as assign apply.
👍 1
instance.apply{...}
f
Thanks !!