CLOVIS
04/15/2019, 10:00 AMAny?.filter, Any?.map etc extension functions, to help with null handling.
How would the compiler react if it is used in a file in which List.filter (from the standard lib) is called? More precisely, if I write the following, which extension function would be called (assuming both are imported):
val l = listOf (...)
l.filter { it... }
In that case they are both valid choices by the compiler, since List is also a Any?. So, which one is called?Mike
04/15/2019, 11:01 AM