summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorHelen Campbell <helen@puppetlabs.com>2017-03-13 14:09:29 +0000
committerHelen Campbell <helen@puppetlabs.com>2017-03-14 12:10:06 +0000
commit2d9a94ebe827d88222c46af33416ae333ae102b2 (patch)
treedb8777d521b6d083c90f8f45e9ed1e9b14ccae4c /README.markdown
parent70d071ba6fa3cf611e5dbdc1cba1343255edf978 (diff)
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 a4c30b5..f9fc025 100644
--- a/README.markdown
+++ b/README.markdown
@@ -815,6 +815,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.
@@ -1067,7 +1071,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`