]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Adding markdown for the range() function's 3rd argument
authorrobruma <robruma@gmail.com>
Thu, 12 Feb 2015 01:27:30 +0000 (20:27 -0500)
committerrobruma <robruma@gmail.com>
Wed, 4 Mar 2015 23:01:29 +0000 (18:01 -0500)
Adding markdown for the range() function's 3rd argument

Adding markdown for the range() function's 3rd argument

README.markdown

index ac0cae69f3036c724164fbccf441e8d8280b25b7..26a6b94f4c637e95ef47e361d651916568b90e43 100644 (file)
@@ -382,6 +382,8 @@ Calling the class or definition from outside the current module will fail. For e
 
   Non-integer strings are accepted; `range("a", "c")` returns ["a","b","c"], and `range("host01", "host10")` returns ["host01", "host02", ..., "host09", "host10"].
 
+  Passing a third argument will cause the generated range to step by that interval, e.g. `range("0", "9", "2")` returns ["0","2","4","6","8"]
+
   *Type*: rvalue
 
 * `reject`: This function searches through an array and rejects all elements that match the provided regular expression. For example, `reject(['aaa','bbb','ccc','aaaddd'], 'aaa')` returns ['bbb','ccc']. *Type*: rvalue