mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Merge pull request #31920 from robpickerill/main
update setsubtract examples to include toset notation
This commit is contained in:
@@ -18,19 +18,19 @@ setsubtract(a, b)
|
||||
|
||||
```
|
||||
> setsubtract(["a", "b", "c"], ["a", "c"])
|
||||
[
|
||||
toset([
|
||||
"b",
|
||||
]
|
||||
])
|
||||
```
|
||||
|
||||
### Set Difference (Symmetric Difference)
|
||||
|
||||
```
|
||||
> setunion(setsubtract(["a", "b", "c"], ["a", "c", "d"]), setsubtract(["a", "c", "d"], ["a", "b", "c"]))
|
||||
[
|
||||
toset([
|
||||
"b",
|
||||
"d",
|
||||
]
|
||||
])
|
||||
```
|
||||
|
||||
## Related Functions
|
||||
|
||||
Reference in New Issue
Block a user