BidirectionalMap

fun <T : Any, R : Any> BidirectionalMap(vararg elements: Pair<T, R>)

Creates a map with the given set of elements mapping pair.first -> pair.second.

Parameters

T

Type of domain elements.

R

Type of co-domain elements.

elements

Elements to be initialized in the map.