Join Slack
Powered by
does “+” in `mylist + newElement` make a new list?
# getting-started
f
forcelain
07/09/2018, 6:08 PM
does “+” in
mylist + newElement
make a new list?
👌 2
r
Ruckus
07/09/2018, 6:13 PM
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/plus.html
u
慧斌
07/10/2018, 10:20 AM
no it just overload the plus operator
➖ 1
❓ 3
k
karelpeeters
07/10/2018, 12:03 PM
It uses the existing overload of the plus operator on
Iterable
, which does return a new list.
➕ 2
3
Views
Open in Slack
Previous
Next