Created
February 6, 2018 06:15
-
-
Save henyihanwobushi/c5b342bf107bef000a70dcfb917b03a5 to your computer and use it in GitHub Desktop.
pythonic array_chunk function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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