JG
07/01/2024, 4:55 PMfun <T, K, M : MutableMap<in K, in T>> Iterable<T>.associateByTo(destination: M, keySelector: (T) -> K): M
&
fun <T, K> Iterable<T>.associateByTo(destination: MutableMap<in K, in T>, keySelector: (T) -> K): MutableMap<in K, in T>
Youssef Shoaib [MOD]
07/01/2024, 4:57 PMJG
07/01/2024, 5:00 PM1st
returns the same exact type which makes sense (since it returns M
).Youssef Shoaib [MOD]
07/01/2024, 5:01 PMdestination
, as in the same exact referenceJG
07/01/2024, 5:01 PM