Skip to content

Instantly share code, notes, and snippets.

@sanryuu
Created February 23, 2015 15:52
Show Gist options
  • Save sanryuu/ba26e0c83c153fa82e94 to your computer and use it in GitHub Desktop.
Save sanryuu/ba26e0c83c153fa82e94 to your computer and use it in GitHub Desktop.
p [[1,2],[3,4],[5,6]].flatten
# => [1, 2, 3, 4, 5, 6]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment