Thankyou Irned.
Your method seem to work very well.
I use Lee's method to test the the return list length, if 1 then last one is fill.
With your method, all filled or all empty will return one single dotted pair. therefore i need to test the value, if NULL value then its the first in the list, else last in the list.
Thankyou for your help
One more question?
Where can i find all the reference on these
I knew about these
car
cdr
caddr, cadddr
I have not come across these.
cdadr
cdaddr
Just found this
http://www.lispworks.com/documentation/HyperSpec/Body/f_car_c.htmCAR, CDR, CAAR, CADR, CDAR, CDDR, CAAAR, CAADR, CADAR, CADDR, CDAAR, CDADR, CDDAR, CDDDR, CAAAAR, CAAADR, CAADAR, CAADDR, CADAAR, CADADR, CADDAR, CADDDR, CDAAAR, CDAADR, CDADAR, CDADDR, CDDAAR, CDDADR, CDDDAR, CDDDDR
I haven't seen anything like this in autodesk reference guide.