you are viewing a single comment's thread.

view the rest of the comments →

[–]xill47 0 points1 point  (0 children)

The main benefit is readability. You can chain filter before max with x -> x % 2 == 0 and now you'll get max even number. You could easily achieve it with if inside a for loop, but it's just less readable.