Issue
How to copy list in Kotlin?
I'm using
val selectedSeries = mutableListOf<String>()
selectedSeries.addAll(series)
Is there a easier way?
Solution
This works fine.
val selectedSeries = series.toMutableList()
Answered By - Audi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.