Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = ["1", "2", "3"]
- a.reduce {|val, con| val + con}
- a = ["123"]
- a.reduce {|val, con| con + val}
- a = ["321"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement