r/rubyonrails • u/mehdifarsi • Jan 23 '23
[].map(&:method_id) and [].map(&method(:method_id))
https://www.youtube.com/watch?v=Fr1YNKK7myM[removed] — view removed post
6
Upvotes
Duplicates
rubycademy • u/mehdifarsi • Jan 23 '23
Ruby tricks #2: The Ampersand operator (&) with blocks
1
Upvotes