home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
me34src.zip
/
me3
/
mutt
/
builtin
/
max.mut
< prev
next >
Wrap
Lisp/Scheme
|
1995-01-14
|
250b
|
13 lines
;; max.mut : find the the maximum of a list of numbers
;; eg (max 1 2 3 4 5) returns 5
;; C Durland Public Domain
(defun max HIDDEN
{
(int n i)
(i (- (nargs) 1))(n (arg i))
(while (>= (-= i 1) 0) (if (< n (arg i)) (n (arg i))) )
n
})