I am studying the codelab on Kotlin collections from the Android team.
I am surprised that they show no syntax for creating arbitrary size collections, only syntaxes such as:
arr=arrayof{0,1,2,3}
list= listof{0,1,2,3}
and nothing like
arr= [0,0,0,....,0] (with size N)
where N is some integer, which you can do in most languages, or for maps for example something like
mmap = mapOf (key -> someFunctionOfKey(key)) for keys in a certain range
How can I do this for arrays, lists, maps, sets, etc...? I couldn't find the syntax on the internet.