karelpeeters
03/04/2018, 3:23 PMmore values are of typeBut less values are of typecompared toAny
String
(Any) -> Unit
then of (String) -> Unit
, so the former is more specific.Andreas Sinz
03/04/2018, 3:31 PMT
vs Any
not String
vs Any
Any
is less specific compared to String
when you look at the possible values it can hold. On the other hand Any
is more specific compared to String
when you look at the possible operations you can do with themkarelpeeters
03/04/2018, 3:34 PMaraqnid
03/05/2018, 12:07 PM