From: James Goodzeit Subject: Re: newbie Q: insertion into sorted list Date: Message-ID: <OWpR5D$qAHA.273@cpmsnbbsa07>
> Is there any Lisp primitives or nifty functions for inserting a key to the > right place in a sorted list---using something like (sort (cons x l)) seems > it will be extravagantly wasteful. also what would how would i do something > like > > (position-if 4 '(1 3 5 7) :test #'<) ; bogus > ==>2 > Nevermind :) (merge (list x) l)