Skip to content

Extract arith_seq_take #13730

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2025
Merged

Extract arith_seq_take #13730

merged 1 commit into from
Jul 18, 2025

Conversation

sferik
Copy link
Contributor

@sferik sferik commented Jun 27, 2025

I refactored the logic for fetching multiple elements from an arithmetic sequence into a new helper function arith_seq_take. Now arith_seq_first delegates to arith_seq_take when an argument is provided.

Fixes a TODO added in 2019 by @mrkn.

@sferik
Copy link
Contributor Author

sferik commented Jul 16, 2025

@mrkn Please let me know if you have any feedback!

@mrkn
Copy link
Member

mrkn commented Jul 18, 2025

@sferik Thank you very much!

@mrkn mrkn force-pushed the extract-arith_seq_take branch from da8455e to 4fa0306 Compare July 18, 2025 09:21
@mrkn mrkn enabled auto-merge (rebase) July 18, 2025 09:34
@mrkn mrkn merged commit 05f51cf into ruby:master Jul 18, 2025
84 checks passed
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