projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update stdlib and concat to 6.1.0 both
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
stdlib
/
lib
/
puppet
/
parser
/
functions
/
flatten.rb
diff --git
a/3rdparty/modules/stdlib/lib/puppet/parser/functions/flatten.rb
b/3rdparty/modules/stdlib/lib/puppet/parser/functions/flatten.rb
index
6be5962
..
7344201
100644
(file)
--- a/
3rdparty/modules/stdlib/lib/puppet/parser/functions/flatten.rb
+++ b/
3rdparty/modules/stdlib/lib/puppet/parser/functions/flatten.rb
@@
-3,17
+3,19
@@
#
module Puppet::Parser::Functions
newfunction(:flatten, :type => :rvalue, :doc => <<-DOC
#
module Puppet::Parser::Functions
newfunction(:flatten, :type => :rvalue, :doc => <<-DOC
- This function flattens any deeply nested arrays and returns a single flat array
- as a result.
+ @summary
+ This function flattens any deeply nested arrays and returns a single flat array
+ as a result.
- *Examples:*
+ @return
+ convert nested arrays into a single flat array
- flatten(['a', ['b', ['c']]])
+ @example Example usage
-
Would return:
['a','b','c']
+
flatten(['a', ['b', ['c']]])` returns: `
['a','b','c']
- Note: from Puppet 5.5.0, the compatible function with the same name in Puppet core
-
will be used instead of this
function.
+ > **Note:** **Deprecated** from Puppet 5.5.0, this function has been replaced with a
+
built-in [`flatten`](https://puppet.com/docs/puppet/latest/function.html#flatten)
function.
DOC
) do |arguments|
DOC
) do |arguments|