Skip to content

Commit

Permalink
Merge pull request #952 from Mathics3/fix-range
Browse files Browse the repository at this point in the history
Add description for Range
  • Loading branch information
rocky authored Jan 17, 2024
2 parents baacd95 + 912935e commit 8a5a691
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion mathics/builtin/list/constructing.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,13 @@ class Range(Builtin):
<dd>returns a list of integers from 1 to $n$.
<dt>'Range[$a$, $b$]'
<dd>returns a list of integers from $a$ to $b$.
<dd>returns a list of (Integer, Rational, Real) numbers from $a$ to $b$.
<dt>'Range[$a$, $b$, $di$]'
<dd>returns a list of numbers from $a$ to $b$ using step $di$.
More specifically, 'Range' starts from $a$ and successively adds \
increments of $di$ until the result is greater (if $di$ > 0) or \
less (if $di$ < 0) than $b$.
</dl>
>> Range[5]
Expand Down

0 comments on commit 8a5a691

Please sign in to comment.