Package: cxml-stp

Function count-children-if

Lambda List

count-children-if (predicate parent &rest args &key from-end (start 0) end key)

Arguments

  • predicate -- a designator for a function of one argument that returns a generalized boolean
  • parent -- a node
  • from-end -- a generalized boolead
  • start, end -- bounding index designators for parent's child list
  • key -- a designator for a function of one argument, or nil

Return Value

a non-negative integer less than or equal to the number of child nodes

Details

Counts (and returns the number of) parent's child nodes satisfying predicate.
 

See also