mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-28 09:26:26 -06:00
update setsubtract examples to include toset notation
This commit is contained in:
parent
0803ea3f4a
commit
5d2e888e96
@ -18,19 +18,19 @@ setsubtract(a, b)
|
|||||||
|
|
||||||
```
|
```
|
||||||
> setsubtract(["a", "b", "c"], ["a", "c"])
|
> setsubtract(["a", "b", "c"], ["a", "c"])
|
||||||
[
|
toset([
|
||||||
"b",
|
"b",
|
||||||
]
|
])
|
||||||
```
|
```
|
||||||
|
|
||||||
### Set Difference (Symmetric Difference)
|
### Set Difference (Symmetric Difference)
|
||||||
|
|
||||||
```
|
```
|
||||||
> setunion(setsubtract(["a", "b", "c"], ["a", "c", "d"]), setsubtract(["a", "c", "d"], ["a", "b", "c"]))
|
> setunion(setsubtract(["a", "b", "c"], ["a", "c", "d"]), setsubtract(["a", "c", "d"], ["a", "b", "c"]))
|
||||||
[
|
toset([
|
||||||
"b",
|
"b",
|
||||||
"d",
|
"d",
|
||||||
]
|
])
|
||||||
```
|
```
|
||||||
|
|
||||||
## Related Functions
|
## Related Functions
|
||||||
|
Loading…
Reference in New Issue
Block a user