Skip to content

✨ Add SequenceSet#min(count) and #max(count) #460

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 2 commits into from
Apr 29, 2025

Conversation

nevans
Copy link
Collaborator

@nevans nevans commented Apr 29, 2025

When count is given to either of these methods, a new SequenceSet is returned, containing only the last count numbers. An empty SequenceSet is returned when self is empty.

The goal is for these to behave similarly to Array#min/#max when they are given a count.

nevans added 2 commits April 28, 2025 23:09
When `count` is given to either of these methods, a new `SequenceSet` is
returned, containing only the last `count` numbers.  An empty
SequenceSet is returned when `self` is empty.

The goal is for these to behave similarly to `Array#min`/`#max` when
they are given a count.
@nevans nevans changed the base branch from sequence_set/related-rdoc-min-max-limit to master April 29, 2025 03:12
@nevans nevans merged commit da45d8c into master Apr 29, 2025
37 checks passed
@nevans nevans deleted the sequence_set/min-max-with-count branch April 29, 2025 03:34
@nevans nevans added the enhancement New feature or request label Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant