Message 1 of 12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hi everyone
this code getting from lee mac website. which I redmarked is so confusing because this code is getting nill personally checked ((= (setq i (1+ i)) n) but the code is index 3 removing the 3rd no from the list. how it is possible?
n= index 3
l = (list 0 1 2 3 4)
result = '(0 1 2 4) how?
(defun LM:RemoveNth ( n l / i )
(setq i -1)
(vl-remove-if '(lambda ( x ) (= (setq i (1+ i)) n)) l)
)
thanks advance to everyone for helping
Solved! Go to Solution.