<Shorthand for Collection Construction> It will be...
# forum
r
Shorthand for Collection Construction It will be very awesome to have shorthand to construct a collection. // current method val views = listOf(binding.singleText , binding.marriedText , binding.divorcedText) // requested method: val views = (binding.singleText , binding.marriedText , binding.divorcedText) `` i do this very often - interaction with all similar types at once with ``map`` or ``forEach``. now i realy wish we have this shorthand for collection constructor.. somehow listOf is not short enough for me. I like how old...