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

Solution to hole 6 #2

Open
nickebbitt opened this issue Apr 5, 2018 · 1 comment
Open

Solution to hole 6 #2

nickebbitt opened this issue Apr 5, 2018 · 1 comment

Comments

@nickebbitt
Copy link

Hi there,

I ran a refactoring golf session at my company today, thanks very much for providing the code.

None of managed to solve hole 6, are you able to share the steps used to get a score of 7? We were hoping there'd be a nice refactoring in IntelliJ to switch the loop to a stream but that doesn't exist.

Thanks

Nick

@augusto
Copy link

augusto commented Aug 18, 2021

I know this is old... but it looks like IntelliJ removed the intention to replace a for loop with the streams API. Doing a bit of googling, it was called foreach loop can be collapsed with the Stream API, and there's a screenshot attached of it to this youtrack ticket (from intellij 2016).

One might need to use an old version of intellij to get a 7 :)

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

2 participants