fun , V> enumMapOf(clazz: Class, vararg pairs: Pair): EnumMap { val map = EnumMap(clazz) pairs.forEach { map.put(it.first, it.second) } return map }