Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new_collection = collection.map { |elt| 2 * elt }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement