count [Relation]
Purpose
The count relation counts the number of individuals in a collection.
Syntax
count setOfObjects number
Domain
The setOfObjects argument is a list.
Range
The number argument is the result of the arithmetic operation.
Examples
(tellm (:about Joe (:filled-by child Mary Sue Pat)))
(retrieve ?x (count (child Joe) ?x)) ==> (3)
(ask (> (count (child Joe)) 2)) ==> T
See Also
Last modified: Jun 1 1995