i managed it by doing this ``` internal class MapE...
# announcements
n
i managed it by doing this
Copy code
internal class MapEntry<K, V>(override val key: K, override val value: V) : Map.Entry<K, V>
internal fun <K, V> Pair<K, V>.toEntry() = MapEntry(first, second)
m
you could
import java.util.AbstractMap
and avoid to create your own entry class:
Copy code
... = AbstractMap.SimpleEntry(first, second)
👍 1
n
Didn't see that one Thanks 👍
m
you’re welcome