Range

Range[imax]
generates the list {1,2,,imax}.

Range[imin,imax]
generates the list {imin,,imax}.

Range[imin,imax,di]
uses step di.

DetailsDetails

  • The arguments to Range need not be integers.
  • Range starts from imin and successively adds increments of di until the result is greater than imax.
  • Range uses the standard Wolfram Language iteration specification, as applied to a single variable.
  • Range has attribute Listable.
Introduced in 1988
(1.0)