Message 1 of 3
remove the nth value of a list

Not applicable
04-15-2015
08:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to remove the nth value of a list if all values are nil (except the 1st row)
Here is list -
(setq Ltemp
(list
(list "Row1ColA" "Row1ColB" "Row1ColC" "Row1ColD" "Row1ColE")
(list "Row2Text" "X" "X" nil "X")
(list "Row3Text" "X" "X" nil nil)
(list "Row4Text" "X" nil nil nil)
(list "Row5Text" nil "X" nil nil)
)
)
In this example it would remove the 4th value in the list.
I can test this in a foreach loop, but would like to use (and learn) mapcar,lambda