Skip to content

Instantly share code, notes, and snippets.

@jimneath
Created February 23, 2010 17:21
Show Gist options
  • Save jimneath/312432 to your computer and use it in GitHub Desktop.
Save jimneath/312432 to your computer and use it in GitHub Desktop.
# I want to turn this:
array = [1, 2, 3, 4, 5, 6, 7, 8, 9]
# into this:
=> [[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