summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorDavid Schmitt <david.schmitt@puppet.com>2017-03-14 14:26:41 +0000
committerGitHub <noreply@github.com>2017-03-14 14:26:41 +0000
commit84a1ddda335f6dc6c8e58cc4b4a8fe91cbed270f (patch)
tree9fae09345281e0488227df50d27a49385bc20d8e /README.markdown
parente4ea1c46e7408f6878819dc08905be445a9c7bc8 (diff)
parent2d9a94ebe827d88222c46af33416ae333ae102b2 (diff)
Merge pull request #736 from HelenCampbell/lengthfunct
Addition of new length function
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown6
1 files changed, 5 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown
index c8c2819..4eca785 100644
--- a/README.markdown
+++ b/README.markdown
@@ -831,6 +831,10 @@ The return value is an array in which each element is one joined key/value pair.
Returns the keys of a hash as an array. *Type*: rvalue.
+#### `length`
+
+Returns the length of a given string, array or hash. To eventually replace the deprecated size() function as can handle the new type functionality introduced in Puppet 4. *Type*: rvalue.
+
#### `loadyaml`
Loads a YAML file containing an array, string, or hash, and returns the data in the corresponding native data type.
@@ -1083,7 +1087,7 @@ Randomizes the order of a string or array elements. *Type*: rvalue.
#### `size`
-Returns the number of elements in a string, an array or a hash. *Type*: rvalue.
+Returns the number of elements in a string, an array or a hash. May get confused around Puppet 4 type values and as such is to be deprecated in the next release and replaced with the new stdlib length function. *Type*: rvalue.
#### `sort`