Skip to content

Instantly share code, notes, and snippets.

@CucumisSativus
Created November 27, 2016 20:45
Show Gist options
  • Save CucumisSativus/41e139cff72743b6851b2209498e2d1e to your computer and use it in GitHub Desktop.
Save CucumisSativus/41e139cff72743b6851b2209498e2d1e to your computer and use it in GitHub Desktop.
space.flatten.grouped(regionWidth).zipWithIndex.toSeq.groupBy(_._2 % regionHeight).mapValues(_.map(_._1)).values.toSeq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment