summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/collections/Union.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/collections/Union.md')
-rw-r--r--docs/content/en/functions/collections/Union.md14
1 files changed, 5 insertions, 9 deletions
diff --git a/docs/content/en/functions/collections/Union.md b/docs/content/en/functions/collections/Union.md
index 119da6fb4..e2eb61313 100644
--- a/docs/content/en/functions/collections/Union.md
+++ b/docs/content/en/functions/collections/Union.md
@@ -1,17 +1,13 @@
---
title: collections.Union
-linkTitle: union
-description: Given two arrays or slices, returns a new array that contains the elements or objects that belong to either or both arrays/slices.
-categories: [functions]
+description: Given two arrays or slices, returns a new array that contains the elements that belong to either or both arrays/slices.
+categories: []
keywords: []
-menu:
- docs:
- parent: functions
-function:
+action:
aliases: [union]
returnType: any
signatures: [collections.Union SET1 SET2]
-relatedFunctions:
+related:
- collections.Complement
- collections.Intersect
- collections.SymDiff
@@ -19,7 +15,7 @@ relatedFunctions:
aliases: [/functions/union]
---
-Given two arrays (or slices) A and B, this function will return a new array that contains the elements or objects that belong to either A or to B or to both. The elements supported are strings, integers, and floats (only float64).
+Given two arrays (or slices) A and B, this function will return a new array that contains the elements or objects that belong to either A or to B or to both.
```go-html-template
{{ union (slice 1 2 3) (slice 3 4 5) }}