Suppose I want to delete one step (element) from the states list.
(defparameter *states* '((:top nil nil) (:subjects nil nil)))
;predicate
(defun equal-state? (step state)
(equal (car step) state))
If I use (delete-if #'equal-state? *states*)
then how the second argument ( state
) can be passed to predicate?
edited: I have finally found a similar question but I am inclined to retain it because of clarity in the question.