eliot@phoenix.Princeton.EDU (Eliot Handelman) (09/18/88)
I'm sorry, I didn't even state the problem right in my query. (Too much terminal time.) What I meant was this: A => (1 2 3) (setf (last a) '()) and now a => (1 2). In effect I'm trying to pop the last cons. Obviously (rplaca (last a) nil) => (1 2 NIL) and (setq a (reverse (cdr (reverse a)))) or (setq a (butlast a)) only works for symbols. Is there some way to do it using rplaca or rplacd? -- This message will cost the net hundreds if not thousands and perhaps millions billions trillions maybe even zillions of dollars to send everywhere.
eliot@phoenix.Princeton.EDU (Eliot Handelman) (09/18/88)
Ignore my last two postings. I'd overlooked the primitive NBUTLAST. As I say, disadvantages of late night work. -- This message will cost the net hundreds if not thousands and perhaps millions billions trillions maybe even zillions of dollars to send everywhere.