Skip to content

Instantly share code, notes, and snippets.

@jedmund
Created January 24, 2014 04:20
Show Gist options
  • Save jedmund/8592033 to your computer and use it in GitHub Desktop.
Save jedmund/8592033 to your computer and use it in GitHub Desktop.
rows = [
[0, 1, 2],
[3, 4, 5],
[6, 7, 8]
]
cols = [[], [], []]
// loop over the rows array with var i
// loop over one array in rows array with var j
// set index i in the array at j
// end loop
// end loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment