Skip to content

Instantly share code, notes, and snippets.

@aleandros
Created October 11, 2016 16:27
Show Gist options
  • Select an option

  • Save aleandros/cceefc2d82b7dc1d5490e82999963db7 to your computer and use it in GitHub Desktop.

Select an option

Save aleandros/cceefc2d82b7dc1d5490e82999963db7 to your computer and use it in GitHub Desktop.
x = [1, 2, 3, 4]
x.map(&: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