Function: org-remove-by-index

org-remove-by-index is a byte-compiled function defined in org-table.el.gz.

Signature

(org-remove-by-index LIST INDICES &optional I0)

Documentation

Remove the elements in LIST with indices in INDICES.

First element has index 0, or I0 if given.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-table.el.gz
(defun org-remove-by-index (list indices &optional i0)
  "Remove the elements in LIST with indices in INDICES.
First element has index 0, or I0 if given."
  (if (not indices)
      list
    (if (integerp indices) (setq indices (list indices)))
    (setq i0 (1- (or i0 0)))
    (delq :rm (mapcar (lambda (x)
			(setq i0 (1+ i0))
			(if (memq i0 indices) :rm x))
		      list))))