1 / 8
✦ Verified product
(1..10).map(&:to_s) Developer T-Shirt
GBP 25.00
Color
Size
Slash Star
Verified independent store
→
(1..10).map(&:to_s) turns a range into an array of strings in a single expression. No loop, no block body — &:to_s passes the method itself as the operation. It's a small example o