We've been looking forward to this one! Kotlin 2.4...
# feed
d
We've been looking forward to this one! Kotlin 2.4 introduces collection literals. No longer limited to just annotation array arguments - you can now create lists as easy as
val x = [1, 2, 3]
. In today's 6-minute video, I cover what you need to know about collection literals, and show how they can be used with name-based destructuring for a neat effect.

https://www.youtube.com/watch?v=cXg4ijiK-Ko

👀 3
K 11
👍 2