summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorgan Haskel <morgan@puppetlabs.com>2015-03-04 15:08:23 -0800
committerMorgan Haskel <morgan@puppetlabs.com>2015-03-04 15:08:23 -0800
commit20d49394fb8dd8c0482ca2be4214f9f596c03f11 (patch)
tree576d954e4d88f83b93ce9dd48c971195cea98bd1
parentb8547b7c29801ca3d89230dfc95716d6f93040ab (diff)
parent380cb02a65f51a520dc5ee000b605d3b7dbe9bd4 (diff)
Merge pull request #410 from robruma/range_documentation_update
Adding markdown for the range() function's 3rd argument
-rw-r--r--README.markdown2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.markdown b/README.markdown
index ac0cae6..26a6b94 100644
--- a/README.markdown
+++ b/README.markdown
@@ -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