Skip to content

Instantly share code, notes, and snippets.

@alanbsmith
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanbsmith/963c7214e01401c3f78f to your computer and use it in GitHub Desktop.
Save alanbsmith/963c7214e01401c3f78f to your computer and use it in GitHub Desktop.
merge & sort 3 arrays
a = [1,4,9]
b = [2,3,5]
c = [6,7,8]
(a+b+c).sort
=> [1, 2, 3, 4, 5, 6, 7, 8, 9]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment