New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: chunks #3
Comments
It would be functionally the same as arr.splitAt(range(n, arr.length, n)) |
The same result can also be achieved with |
I would prefer Also, let me know if you would like me to make a PR or not :) |
It's there now! |
Awesome! Another good feature could be >>> Array(range(6)).windows(3)
Array(Array(0, 1, 2), Array(1, 2, 3), Array(2, 3, 4), Array(3, 4, 5)) |
Implemented - thanks for your suggestions! |
First off, thanks for making this great library!
What do you think of adding a
chunks(n)
function that splits an Array into n-sized Arrays?Something like..
I'd be happy to contribute this feature as well.
The text was updated successfully, but these errors were encountered: