[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: APPLY with 3+ arguments
- To: email@example.com, firstname.lastname@example.org
- Subject: Re: APPLY with 3+ arguments
- From: email@example.com (D. Loewenstern)
- Date: Mon, 22 Jun 87 09:01:16 EDT
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