mir-algorithm icon indicating copy to clipboard operation
mir-algorithm copied to clipboard

chunkBy function

Open fabienmica opened this issue 4 years ago • 1 comments

Having a chunkBy function for nogc would be great.

fabienmica avatar Oct 01 '21 11:10 fabienmica

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.

9il avatar Oct 02 '21 17:10 9il