Is there any best practice as for using listOf() or arrayListOf() in Kotlin code?
They both actually returns the same implementation and I understand listOf is better in the sense that it is not tied to specific implementation.
Here are the docs for it?
Is it documented anywhere in the language style?
Are there any other reasons to use each one?