I have a function which return a list of values. Some of these values may be empty lists themselves, while some are not. However, at the end of every list, there is a #<unspecified>
value present. I understand that this value is returned when the function does not return anything.
I want to trim this value, along with other null lists.
My list is like this:(() () MD- MC+. #<unspecified>)
I intend to apply a filter function to this list.
The criteria that I will be applying is null?
.
However, when this is applied to the #<unspecified>
value, it gives me false. How can I remove the #<unspecified>
value from the list?
The output of this list after applying the filter function should be:
(MD- MC+)
How do I do this?
(() () MD- MC+ . #<unspecified>)
? – Sylwester