Skip to content

Replace list.range - #901

Merged
lpil merged 5 commits into
mainfrom
range
Jan 26, 2026
Merged

Replace list.range#901
lpil merged 5 commits into
mainfrom
range

Conversation

@lpil

@lpil lpil commented Jan 26, 2026

Copy link
Copy Markdown
Member

No description provided.

@giacomocavalieri giacomocavalieri left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Just a tiny error in a doc comment

Comment thread src/gleam/int.gleam Outdated
///
/// ```gleam
/// range(from: 1, to: -2, with: [], run: list.prepend)
/// // -> [-2, -1, 0, 1]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If to is exclusive, shouldn't this be [-1, 0, 1]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops

@lpil
lpil merged commit 2881ecb into main Jan 26, 2026
7 checks passed
@lpil
lpil deleted the range branch January 26, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants