Created
October 11, 2016 16:31
-
-
Save aleandros/221466102faec66de6bbb3ca83e8e9b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| x = [1, 2, 3, 4] | |
| x.map { |n| n.to_s }.join('-') #=> "1-2-3-4" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment