Range

From MiniScript Wiki
Revision as of 15:50, 17 March 2020 by 71.226.33.30 (talk) (Created page with "<c>range</c> Return a list containing a series of numbers within a range. from (number, default 0): first number to include in the list to (number, default 0): point at which...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

range Return a list containing a series of numbers within a range. from (number, default 0): first number to include in the list to (number, default 0): point at which to stop adding numbers to the list step (number, optional): amount to add to the previous number on each step; defaults to 1 if to > from, or -1 if to < from

Example

range(50, 5, -10)		// returns [50, 40, 30, 20, 10]