Skip to content

Code refactor for AbsoluteMax improvements 2 #3028

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

Closed
cristbjesus opened this issue Apr 20, 2022 · 0 comments
Closed

Code refactor for AbsoluteMax improvements 2 #3028

cristbjesus opened this issue Apr 20, 2022 · 0 comments

Comments

@cristbjesus
Copy link
Contributor

I'm refactoring some classes from the maths package to have a cleaner, more concise, easier to maintain and better documented code. I'm creating an issue for each algorithm file.

I'm refactoring the AbsoluteMax again because I realized it can be improved even further by replacing the if inside forEach with a filter in the Stream.

cristbjesus added a commit to cristbjesus/Java that referenced this issue Apr 20, 2022
I'm refactoring some classes from the `maths` package to have a cleaner,
more concise, easier to maintain and better documented code.

I've refactored the AbsoluteMax again because I realized it can be
improved even further by replacing the `if` inside `forEach` with a
`filter` in the Stream.

Resolves: TheAlgorithms#3028
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

No branches or pull requests

1 participant