I have working with kotlin for more than one year and written a lot of code so far. However today i saw following code, and honestly i do not understand the syntax. A lot of research resulted in 0 output. The code i am looks like this
var list1 = arrayOfNulls<Int>(7)
var list2 = arrayOfNulls<Int>(8)
arrayListOf(*list2) + arrayListOf(*list1)
The syntax is new for me and i have not seen it before. Can someone explain it for me. What i do not understans ius the star part (*) in the arrayListOf(*list2)