Open cristiantoader opened 5 years ago
Maybe passing in the accumulator and identity for the collect is a bit much. It is starting to look like you're inlining all stream operations in a method call, rather than parameterizing the stream operations.
https://github.com/cosmin-sterian/devschool-homeworks/blob/44db3572235be6c2048d4d0d18245c6ba3a43515/backend/session-4/Java8Assignment/src/main/java/com/ing/devschool/Java8Assignment.java#L189
Maybe passing in the accumulator and identity for the collect is a bit much. It is starting to look like you're inlining all stream operations in a method call, rather than parameterizing the stream operations.
https://github.com/cosmin-sterian/devschool-homeworks/blob/44db3572235be6c2048d4d0d18245c6ba3a43515/backend/session-4/Java8Assignment/src/main/java/com/ing/devschool/Java8Assignment.java#L189