Join Slack
Powered by
<How to multiply list in Kotlin> If I have a list:...
# stackoverflow
u
user
03/24/2021, 1:21 PM
How to multiply list in Kotlin
If I have a list: val a: mutableListOf = (1,2,3,4) and I want to have a new list b with (1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4) In python, you could just have a * 3 How can this be achieved in Kotlin?
Open in Slack
Previous
Next