Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
'((A 0) (K 1) (E 1) (H 2) (I 2) (G 2) '3 (NIL 3) (J 3) (J 3) '4 (NIL 4) '4 (NIL 4)))
How do I delete '3 and '4 from the list?
'3
'4
In Lisp
is simply a shorthand for
(quote 3)
so you need to use remove-if passing a predicate function that will check if the element being passed is a list of two elements where the first element is the symbol quote.
remove-if
quote
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.