summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schmitt <david.schmitt@puppetlabs.com>2015-11-09 15:17:01 +0000
committerDavid Schmitt <david.schmitt@puppetlabs.com>2015-11-09 15:17:01 +0000
commit61333cfc48026af204483d681bd8b10cb44d6fc6 (patch)
treea8ba3f9ea27ee8be88485df501bf6e6bf18b5128
parent5d8a5ac63130320252fcb53010fe13eb4c07963e (diff)
parent99db9827412f93e5f2d74eb86f6a25cd214823ae (diff)
downloadpuppet-stdlib-61333cfc48026af204483d681bd8b10cb44d6fc6.tar.gz
puppet-stdlib-61333cfc48026af204483d681bd8b10cb44d6fc6.tar.bz2
Merge pull request #544 from HelenCampbell/readmeaddition
pick_default addition to readme
-rw-r--r--README.markdown4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index 57a62b6..9ff242c 100644
--- a/README.markdown
+++ b/README.markdown
@@ -624,6 +624,10 @@ From a list of values, returns the first value that is not undefined or an empty
*Type*: rvalue.
+#### `pick_default`
+
+Will return the first value in a list of values. Contrary to the 'pick()' function, the 'pick_default()' does not fail if all arguments are empty. This allows it to use an empty value as default. *Type*: rvalue.
+
#### `prefix`
Applies a prefix to all elements in an array, or to the keys in a hash.