I would like to know the reason why don’t we have in Kotlin shorthand for safe index access?
In Typescript, we could have:
const a: string[] | null = null;
console.log(a?.[0]);
In Kotlin, we must use normal method name:
val numbers: List<String>? = null
numbers?.get(1)