Lisp Routine
Lisp Routine
(OP)
Given a variable defined as (setq a '(-10 -20 10 20))
Can you help me to find the Max or Min of a (i.e. using the variable a). I would appreaciate anything other than (max -10 -20 10 20).
Can you help me to find the Max or Min of a (i.e. using the variable a). I would appreaciate anything other than (max -10 -20 10 20).





RE: Lisp Routine
'(-10 -20 10 20). Cheers.
RE: Lisp Routine
(apply 'max a) where 'a' is set to your list
'(-10 -20 10 20). Cheers.....
RE: Lisp Routine
RE: Lisp Routine
the following: (vl-sort x '<) where 'x' is the list of
numbers you want sorted from min to max.