A new platform for documentation and tutorials is launching soon.
We are migrating Terraform documentation into HashiCorp Developer, our new developer experience.
»setsubtract
Function
The setsubtract
function returns a new set containing the elements from the first set that are not present in the second set. In other words, it computes the
relative complement of the second set.
»Examples
»Set Difference (Symmetric Difference)
»Related Functions
setintersection
computes the intersection of multiple setssetproduct
computes the Cartesian product of multiple sets.setunion
computes the union of multiple sets.