mir-algorithm
mir-algorithm copied to clipboard
chunkBy function
Having a chunkBy function for nogc would be great.
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.