Ahmed
12/01/2021, 3:18 PMs = "string"
list = [s * 10]
basically, I just want to create a list of objects each of them is the same string actuallyJoffrey
12/01/2021, 3:19 PMval list = List(10) { "string" }
This List
factory function takes a desired size and a lambda. The lambda is called size
times with an element index as argument (ignored here), and it should return the desired value for the element at that indexAhmed
12/01/2021, 3:22 PMKlitos Kyriacou
12/01/2021, 4:16 PM[s]*10