Function: -zip-with

-zip-with is a byte-compiled function defined in dash.el.

Signature

(-zip-with FN LIST1 LIST2)

Documentation

Zip LIST1 and LIST2 into a new list using the function FN.

That is, apply FN pairwise taking as first argument the next element of LIST1 and as second argument the next element of LIST2 at the corresponding position. The result is as long as the shorter list.

This function's anaphoric counterpart is --zip-with.

For other zips, see also -zip-lists and -zip-fill.

View in manual

Source Code

;; Defined in ~/.emacs.d/elpa/dash-20260221.1346/dash.el
(defun -zip-with (fn list1 list2)
  "Zip LIST1 and LIST2 into a new list using the function FN.
That is, apply FN pairwise taking as first argument the next
element of LIST1 and as second argument the next element of LIST2
at the corresponding position.  The result is as long as the
shorter list.

This function's anaphoric counterpart is `--zip-with'.

For other zips, see also `-zip-lists' and `-zip-fill'."
  (declare (important-return-value t))
  (--zip-with (funcall fn it other) list1 list2))