Function: seq-do-indexed

seq-do-indexed is a byte-compiled function defined in transient.el.

Signature

(seq-do-indexed FUNCTION SEQUENCE)

Documentation

Apply FUNCTION to each element of SEQUENCE and return nil.

Unlike seq-map, FUNCTION takes two arguments: the element of the sequence, and its index within the sequence.

Other relevant functions are documented in the sequence group.

Shortdoc

;; sequence
(seq-do-indexed (lambda (a index) (message "%s:%s" index a)) '("foo" "bar"))
    e.g. => nil

Source Code

;; Defined in ~/.emacs.d/elpa/transient-20260414.1009/transient.el
;; Could not find source code, showing raw function object.
#[514 "\300C\301\302\303#\"\266\304\207"
      [0 seq-do make-closure
	 #[257 "\300\301\242\"\210\301\211\242T\240\207"
	       [V0 V1]
	       4 "\n\n(fn ELT)"]
	 nil]
      8
      ("/root/.emacs.d/elpa/seq-2.24/seq-25.elc" . 3971)]