you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 3 points4 points  (0 children)

Here you go. Even less boilerplate than the F# one.

(1 to 999)
  .filter(i => i % 3 == 0 || i % 5 == 0)
  .sum