3 ms·
Because there are more than three collection types (Sets, Arrays, Maps) in rich static languages. The ugly Kotlin syntax is of course just there to look differ
by still_grokking 4y ago
Because there are more than three collection types (Sets, Arrays, Maps) in rich static languages.
The ugly Kotlin syntax is of course just there to look different to Scala, where you would have:
Array(1, 2, 3)
Array.empty
Map("key" -> "value")