Ruby/Rails Features and Patterns

Flashcard 1 of 6

Is there a more direct way to accomplish this?

In particular, is there a way we can avoid the block argument (u)?

users.select { |u| u.admin? }

Answer:

Reveal Answer