map

map of elements.flatMap { listOf(constant(it.key), toExprOrConstant(it.value)) }.toTypedArray().