fun <K, V> AssertionContainer<*>.mapLikeToIterablePair(mapLike: MapLike): List<Pair<K, V>>
(source)
Transforms the given MapLike to Pair<Pair<K, V>, Array<out Pair<K, V>>>
with the intention that
it can be easily used for a function requiring Pair<K, V>, vararg Pair<K, V>
.
Note that an unsafe cast applies, i.e. you need to know that the key and value type of the given mapLike is
actually K and V for all entries. Use .map { (it.key as K) to (it.value as V) }
afterwards
if you don't know what you are doing.
Since
0.15.0