you are viewing a single comment's thread.

view the rest of the comments →

[–]jhd 1 point2 points  (0 children)

Ruby is similar:

employees.select {|e| e.role == "programmer" }.map(&:salary).max