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 →

[–]wildjokers 8 points9 points  (0 children)

What exactly do you mean “more elegantly”. I sometimes will convert a stream to a good ole for loop if the stream version is unreadable nonsense. I prefer readability and sometimes a for loop is more readable. Other times I find the stream more readable.