Skip to content

Commit

Permalink
fix: correct missing range signature
Browse files Browse the repository at this point in the history
  • Loading branch information
brekk committed Apr 3, 2024
1 parent cc84c61 commit 561d9bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prelude/__internal__/List.mad
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export repeatWith = (f, count) => {
* range(3, 3) // []
* range(3_s, 6_s) // [3_s, 4_s, 5_s]
*/
range :: (Comparable n, Number n) => n -> n -> List n
export range = (start, end) => repeatWith((i) => i + start, end - start)


Expand Down

0 comments on commit 561d9bd

Please sign in to comment.