min [Relation]


Purpose

The min relation is an aggregation operator that finds the smallest of a set of numbers.

Syntax

min setOfNumbers number

Domain

The setOfNumbers argument is a list of integer and/or real numbers.

Range

The number argument is the smallest member of setOfNumbers.

Examples

(ask (min '(4 3 5) 3)) ==> T 
(tellm (:about Joe (:filled-by friend Fred Sue)) 
       (age Fred 30) (age Sue 40)) 
(retrieve ?x (min (age (friend Joe)) ?x)) ==> (30)

See Also

Last modified: Jun 1 1995