merge

Merges two ABAC tag maps.

Values for the same key are combined as an ordered union. Keys present in only one map retain all of their values.

Example:

val tags1 = mapOf("dept" to listOf("eng"), "role" to listOf("admin"))
val tags2 = mapOf("dept" to listOf("pm"), "team" to listOf("backend"))

tags1.merge(tags2)
// Result: { "dept": ["eng", "pm"], "role": ["admin"], "team": ["backend"] }

Return

a new map containing the merged tags

Parameters

other

tags to merge into this map