fun <K, V> Map<out K?, V>.filterKeyNotNull(): Map<K, V> =
filterKeys { it != null } as Map<K, V>
i
Ivan Pavlov
12/30/2020, 3:14 PM
I have 3 years experience and I've never used maps with nullable keys. If it is not in standard library probably it is really rare use case and it's just not worth to add such function