import * as TR from "../Transducer";
import { aggregate_ } from "./aggregate";
/**
 * Partitions the stream with specified chunkSize
 * @param chunkSize size of the chunk
 */

export function grouped_(self, chunkSize) {
  return aggregate_(self, TR.collectAllN(chunkSize));
}
/**
 * Partitions the stream with specified chunkSize
 * @param chunkSize size of the chunk
 */

export function grouped(chunkSize) {
  return self => grouped_(self, chunkSize);
}
//# sourceMappingURL=grouped.js.map