I have a big list of strings. It contains about 100000 strings. These strings are relatively short: medium length is about 60 characters, the maximum length is about 300 characters. I want to hardcode this list in a source code of my application. I want to use listOf function:
val cities = listOf(
"Boston",
"Munich",
"Saint-Petersburg")
My code will be similar but listOf function will contain 100000 arguments. Is such code correct? Can Kotlin compiler compile correctly function call with 100000 arguments?