home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
editor
/
me_cd.arc
/
MIN.MUT
< prev
next >
Wrap
Lisp/Scheme
|
1988-09-23
|
232b
|
11 lines
;; min.mut : find the the minimum of a list of numbers
;; eg (min 1 2 3 4 5) returns 1
(defun min HIDDEN
{
(INT n)(int i)
(n (arg (i (- (nargs) 1))))
(while (>= (-= i 1) 0) (if (< (arg i) n) (n (arg i))) )
n
})