crummy
val l = listOf<Any>("foo") l.first { it is String}.length // unresolved reference: length
l.filterIsInstance<String>().first().length
Youssef Shoaib [MOD]
Bornyls Deen
Joel
firstIsInstanceOrNull
Orhan Tozan
firstInstanceOrNull
findInstance
A modern programming language that makes developers happier.