MultiMaps.kt

package com.hexagonkt.core

fun <K, V> multiMapOfLists(vararg pairs: Pair<K, List<V>>): MultiMap<K, V> =
    MultiMap(pairs.toMap())

fun <K, V> multiMapOf(vararg pairs: Pair<K, V>): MultiMap<K, V> =
    MultiMap(pairs.toList())

fun <K, V> Map<K, List<V>>.toMultiMap(): MultiMap<K, V> =
    MultiMap(this)