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

part1 and part2 done by Gladun Nikita #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

part1 and part2 done by Gladun Nikita #43

wants to merge 1 commit into from

Conversation

nikitos19
Copy link

No description provided.

if(startInnerInclusive < array[0].length){
action.accept(array[startOuterInclusive][startInnerInclusive]);
startInnerInclusive++;
if(startInnerInclusive == array[0].length && startOuterInclusive < endOuterExclusive){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this check to the beginning of the method to reduce nesting.

throw new UnsupportedOperationException();
DoubleConsumer consumer = value -> action.accept(new IndexedDoublePair(currentIndex,value));
inner.forEachRemaining(consumer);
currentIndex++;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect. Add test with collect(toList()).

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