Search found 2 matches

by ander-skirnir
Mon Jun 20, 2011 4:58 pm
Forum: Common Lisp
Topic: Finding the minimum element in a list
Replies: 15
Views: 23501

Re: Finding the minimum element in a list

Code: Select all

(reduce #'min list)
or

Code: Select all

(apply #'min list)
first is better
by ander-skirnir
Tue May 17, 2011 11:21 am
Forum: Common Lisp
Topic: Best way to compare parameter members
Replies: 3
Views: 3958

Re: Best way to compare parameter members

Code: Select all

(set-difference '(1 2 3 4)
                '(1 2 6 7))
=> (4 3)
(set-difference-in-hyperspec)