import * as tsplus_module_1 from "@tsplus/stdlib/collections/Chunk/size";
import * as tsplus_module_2 from "@tsplus/stdlib/collections/Chunk/take";
import * as tsplus_module_3 from "@tsplus/stdlib/collections/Chunk/zipWith";
import * as tsplus_module_4 from "@tsplus/stdlib/collections/Chunk/drop";
import * as tsplus_module_5 from "@tsplus/stdlib/data/Either/definition";
import * as tsplus_module_6 from "@tsplus/stdlib/data/Tuple/make";
export function zipChunks(leftChunk, rightChunk, f) {
  const leftChunkSize = tsplus_module_1.size(leftChunk);
  const rightChunkSize = tsplus_module_1.size(rightChunk);
  return leftChunkSize > rightChunkSize ? tsplus_module_6.make(tsplus_module_3.zipWith_(tsplus_module_2.take_(leftChunk, rightChunkSize), rightChunk, f), tsplus_module_5.left(tsplus_module_4.drop_(leftChunk, rightChunkSize))) : tsplus_module_6.make(tsplus_module_3.zipWith_(leftChunk, tsplus_module_2.take_(rightChunk, leftChunkSize), f), tsplus_module_5.right(tsplus_module_4.drop_(rightChunk, leftChunkSize)));
}
//# sourceMappingURL=zipChunks.mjs.map