Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Remove item from list

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
msarqui
602 Views, 2 Replies

Remove item from list

Hi guys,

 

Could someone help me please?

 

Lets say my variable lst has this list:

'((2 "G01-A = VALUE") (3 "G01-B = VALUE") (4 "G01-C = VALUE") (5 "G02-A = VALUE"))

 

Now, how do I remove the first item (the red number) of each element in this list to have the folllowing result:

'(("G01-A = VALUE") ("G01-B = VALUE") ("G01-C = VALUE") ("G02-A = VALUE"))

 

Thanks

Marcelo

 

 

2 REPLIES 2
Message 2 of 3
Kent1Cooper
in reply to: msarqui

(mapcar 'cdr lst)

Kent Cooper, AIA
Message 3 of 3
msarqui
in reply to: Kent1Cooper

Many thanks Kent!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report