Function: reftex-sublist-nth
reftex-sublist-nth is a byte-compiled function defined in
reftex.el.gz.
Signature
(reftex-sublist-nth LIST NTH PREDICATE &optional COMPLETION)
Documentation
Make a list of the NTH elements of all members of LIST which fulfill PREDICATE.
When COMPLETION is non-nil, make all elements of the resulting list also a list, so that the result can be used for completion.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/reftex.el.gz
(defun reftex-sublist-nth (list nth predicate &optional completion)
"Make a list of the NTH elements of all members of LIST which fulfill PREDICATE.
When COMPLETION is non-nil, make all elements of the resulting
list also a list, so that the result can be used for completion."
(let (rtn)
(while list
(if (funcall predicate (car list))
(push (if completion
(list (nth nth (car list)))
(nth nth (car list)))
rtn))
(setq list (cdr list)))
(nreverse rtn)))