Skip to content

Instantly share code, notes, and snippets.

@henyihanwobushi
Created February 6, 2018 06:15
Show Gist options
  • Save henyihanwobushi/c5b342bf107bef000a70dcfb917b03a5 to your computer and use it in GitHub Desktop.
Save henyihanwobushi/c5b342bf107bef000a70dcfb917b03a5 to your computer and use it in GitHub Desktop.
pythonic array_chunk function
chunk = lambda arr, n: [arr[i::n] for i in range(arr)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment