func forEachChunk()

in Sources/RxCBCentral/core/Operations/Write.swift [80:84]


    func forEachChunk(by size: Int, _ body: ([Element]) -> ()) {
        stride(from: 0, to: count, by: size).forEach { index in
            body(Array(self[index ..< Swift.min(index + size, count)]))
        }
    }