// tracing: off
import * as A from "../../Collections/Immutable/Chunk"
import * as E from "../../Either"
export function zipChunks_(fa, fb, f) {
  let fc = A.empty()
  const len = Math.min(A.size(fa), A.size(fb))

  for (let i = 0; i < len; i++) {
    fc = A.append_(fc, f(A.unsafeGet_(fa, i), A.unsafeGet_(fb, i)))
  }

  if (A.size(fa) > A.size(fb)) {
    return [fc, E.left(A.drop_(fa, A.size(fb)))]
  }

  return [fc, E.right(A.drop_(fb, A.size(fa)))]
}
//# sourceMappingURL=utils.js.map
