import * as SK from "../../Sink";
import * as Transduce from "./transduce";
/**
 * Partitions the stream with specified chunkSize
 * @param chunkSize size of the chunk
 */

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

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