Function: icalendar-count-children-by-type
icalendar-count-children-by-type is a byte-compiled function defined
in icalendar-ast.el.gz.
Signature
(icalendar-count-children-by-type NODE)
Documentation
Count NODE's children by type.
Returns an alist mapping type symbols to the number of NODE's children of that type.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/icalendar-ast.el.gz
(defun ical:count-children-by-type (node)
"Count NODE's children by type.
Returns an alist mapping type symbols to the number of NODE's children
of that type."
(let ((children (ical:ast-node-children node))
(map nil))
(dolist (child children map)
(let* ((type (ical:ast-node-type child))
(n (alist-get type map)))
(setf (alist-get type map) (1+ (or n 0)))))))