Skip to content
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

Implement dropLast(n) #44

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Implement dropLast(n) #44

merged 1 commit into from
Oct 16, 2024

Conversation

tginsberg
Copy link
Owner

Keep all but the last n elements of the stream.

@tginsberg tginsberg changed the base branch from main to release/v0.6.0 October 16, 2024 22:47
Copy link

Overall Project 98.43% -0.07% 🍏
Files changed 98.53% 🍏

File Coverage
DropLastGatherer.java 98.41% -1.59% 🍏
Gatherers4j.java 98.3% 🍏

@tginsberg tginsberg merged commit 96f6ba6 into release/v0.6.0 Oct 16, 2024
2 checks passed
@tginsberg tginsberg deleted the feature/droplast branch October 16, 2024 22:50
tginsberg added a commit that referenced this pull request Nov 2, 2024
* Upgrade dependencies (#42)
+ Move from Gradle 8.10.1 to 8.10.2
+ Move from JUnit 5.11.0 to 5.11.2
+ Implement `dropLast(n)` (#44)
+ Add support for `zipWith(collection)` and `zipWith(iterator)` (#45)
+ Add support for `interleave(iterable)` and `interleave(iterator)` (#46)
+ Add support for appending the longer stream of an interleave operation (#47)
+ Add `appendLonger()` to cover when source and argument provide different number of elements
+ Add `appendArgumentIfLonger()` to cover when argument is longer than source
+ Add `appendSourceIfLonger()` to cover when source is longer than argument
+ Implement grouping() and groupingBy(fn) (#50)
+ Minor fix for averaging example in README
+ Switch to Markdown for JavaDoc (#51)
+ Misc fixes to descriptions
+ #48: Account for stream and argument not being the same length (#52)
+ I am not wild about having to use a type witness, but I'm fine with adding it as I think this use case is pretty niche and anybody who needs it could probably tolerate a type witness.
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.

1 participant