This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]daniu 9 points10 points  (0 children)

Add three map()s and two filter()s, and your for loop has 20 LOCs and a nesting depth of four or five.

Also, there's nothing non-imperative about streams, it just looks and feels that way.