summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorJetroid <holtjet@gmail.com>2015-08-24 12:01:29 +0100
committerJetroid <holtjet@gmail.com>2015-08-24 14:24:10 +0100
commit1d9189d860f28067b72093cbe4027cf49b7d612c (patch)
tree315a8a912f1bd8d17530b84bdb923b45596cae3d /README.markdown
parent1d89df906e1ae1d09a862974181663caaf8012c6 (diff)
downloadpuppet-stdlib-1d9189d860f28067b72093cbe4027cf49b7d612c.tar.gz
puppet-stdlib-1d9189d860f28067b72093cbe4027cf49b7d612c.tar.bz2
(MODULE-2456) Modify union to accept more than two arrays
Add spec tests to test the new functionality: *Case for 3 arrays. *Case for 4 arrays. Modify README to note new functionality. This is for issue MODULE-2456, follow the precedent of MODULE-444. This change allows union to be much more useful, unioning many arrays in one line rather than in n lines. Additionally, as this is only added functionality, and does not affect the 2 array case that all modules currently using array are using, it should not affect any existing modules utilizing union. This is now useful, for example, for merging many arrays of resources (eg: packages.) to generate just one list with no duplicates, to avoid duplicate resource declarations.
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown
index f949dca..e71241f 100644
--- a/README.markdown
+++ b/README.markdown
@@ -704,7 +704,7 @@ Returns the literal type when passed a value. Requires the new parser. Useful fo
#### `union`
-Returns a union of two arrays, without duplicates. For example, `union(["a","b","c"],["b","c","d"])` returns ["a","b","c","d"].
+Returns a union of two or more arrays, without duplicates. For example, `union(["a","b","c"],["b","c","d"])` returns ["a","b","c","d"].
#### `unique`