It seems the problem is in recursion in moment of ...
# announcements
n
It seems the problem is in recursion in moment of compilation. kotlinc had frozen few times. 🙂 And this works well
Copy code
>>> fun <T>concat(t: T, ts: Collection<T>): List<T> = listOf(t) + ts
>>> concat(1, listOf(2,3))
[1, 2, 3]
>>> operator fun <T> T.plus(list: List<T>): List<T> = concat(this, list)
>>> 1 + listOf(1,2,3)
[1, 1, 2, 3]