Skip to content

Commit 20d4939

Browse files
author
Morgan Haskel
committed
Merge pull request #410 from robruma/range_documentation_update
Adding markdown for the range() function's 3rd argument
2 parents b8547b7 + 380cb02 commit 20d4939

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.markdown

+2
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,8 @@ Calling the class or definition from outside the current module will fail. For e
382382

383383
Non-integer strings are accepted; `range("a", "c")` returns ["a","b","c"], and `range("host01", "host10")` returns ["host01", "host02", ..., "host09", "host10"].
384384

385+
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"]
386+
385387
*Type*: rvalue
386388

387389
* `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

0 commit comments

Comments
 (0)