For AI agents: the complete documentation index is available at /hclapi/llms.txt, the full documentation bundle is available at /hclapi/llms-full.txt, and this page is available as Markdown at /hclapi/docs/manifest/functions/collections/merge.md.

merge

Merges two or more maps into a single map. If duplicate keys exist, values from later arguments take precedence.

Signature

merge(...maps: map) -> map

Parameters

ParameterTypeRequiredDescription
mapsmapat least 2Maps to merge

Return value

Returns the documented result for the function signature.

Example

respond {
  status = 200
  body = merge(steps.find_user.result, { retrieved_at = now() })
}