]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
pick_default addition to readme
authorHelen Campbell <helen@puppetlabs.com>
Mon, 9 Nov 2015 15:14:34 +0000 (15:14 +0000)
committerHelen Campbell <helen@puppetlabs.com>
Mon, 9 Nov 2015 15:14:34 +0000 (15:14 +0000)
README.markdown

index 57a62b6cc2db30c2382b1030105a947bb07cf2cc..9ff242cd80db82cd1c5774889c5ddd62bf913eea 100644 (file)
@@ -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.