Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [1, 2, 3, 4, 5].map &:even?
- # => [false, true, false, true, false]
- &:to_s
- # is essentially the same as
- proc do |obj|
- obj.to_s
- end
Advertisement