Skip to content
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

chunkBy function #366

Open
fabienmica opened this issue Oct 1, 2021 · 1 comment
Open

chunkBy function #366

fabienmica opened this issue Oct 1, 2021 · 1 comment

Comments

@fabienmica
Copy link

fabienmica commented Oct 1, 2021

Having a chunkBy function for nogc would be great.

@9il
Copy link
Member

9il commented Oct 2, 2021

Would it work for you if it would be an iteration function instead of a range void eachGroup(alias apply, alias fun = "a == b", string member = null, SliceOrArray)(SliceOrArray slice)? where member is optional member to apply the fun on (by default it would be applied directly on the elements. It will call apply on each group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants