Skip to content

Commit

Permalink
Add doctest for Range
Browse files Browse the repository at this point in the history
  • Loading branch information
Li-Xiang-Ideal committed Dec 16, 2023
1 parent e148625 commit a3d3107
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mathics/builtin/list/constructing.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,9 @@ class Range(Builtin):
>> Range[-3, 2]
= {-3, -2, -1, 0, 1, 2}
>> Range[5, 1, -2]
= {5, 3, 1}
>> Range[1.0, 2.3]
= {1., 2.}
Expand Down

0 comments on commit a3d3107

Please sign in to comment.