On Sunday, 9 October 2016 at 08:25:40 UTC, Nicholas Wilson wrote:
How? All you need is an extra `each` e.g.
r.inBatchesOf!(8).each!(a =>a[].map!(convertColor!RGBA8))
perhaps define a helper function for it that does each + the
explicit slice + map, but it certainly doesn't scream
completely different API to me.
Ha, realised I went full circle. Still might be useful if the
compiler is able to use the fact that the range is a multiple of
N (particularly is N is a power of 2).
Are you able to apply arbitrary attributes to the delegate
passed (i.e. things like @fastmath)?