org-apply-on-list

org-apply-on-list is a compiled Lisp function in `org-list.el'.

(org-apply-on-list FUNCTION INIT-VALUE &rest ARGS)

Call FUNCTION on each item of the list at point.
FUNCTION must be called with at least one argument: INIT-VALUE,
that will contain the value returned by the function at the
previous item, plus ARGS extra arguments.

FUNCTION is applied on items in reverse order.

As an example, (org-apply-on-list (lambda (result) (1+ result)) 0)
will return the number of items in the current list.

Sublists of the list are skipped. Cursor is always at the
beginning of the item.