members [Relation]


Purpose

The members relation is a function that returns the members of a set.

Syntax

members set object

Domain

The set argument is a list of objects.

Range

The object argument is any object.

Examples

(ask (members '(3 5 4) 5)) ==> T 
(tellm (:about Mary (:filled-by friends Joe Pam Sue))) 
(retrieve ?x (friends Mary ?x)) ==> (|I|JOE |I|PAM |I|SUE) 
(retrieve ?x (members (friends Mary) ?x)) ==> (|I|JOE |I|PAM |I|SUE)

See Also

Last modified: Jun 1 1995