Derek Berner
08/26/2019, 4:07 PMMap<KClass<T>, (T) -> Unit>
where the value type (T) -> Unit
is covariant (?) with T
. e.g. map[Int::class]
has type (Int) -> Unit
. There's no way to do this without casting, right?Dominaezzz
08/26/2019, 4:14 PMMap
and provide the constraints.Derek Berner
08/26/2019, 4:52 PMMap
- it can be a new class that doesn't extend Map
.Dominaezzz
08/31/2019, 1:31 AM