[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: APPLY with 3+ arguments
I use 3+ arguments for APPLY often. Usually, I use this when the first few arguments to a function
are known, but the remainder are to be passed in as a list:
(APPLY #'MAX 0 list) == find the MAX of a list, but return 0 if all elements of the list are negative.
Naturally, this isn't strictly necessary -- you could write the above as:
(MAX 0 (APPLY #'MAX list))
but I find the first preferable.
Naval Air Development Center
Warminster, PA 18974-5000