list notempty - part-cw/lambdanative GitHub Wiki
(list-notempty? lst)
list-notempty? check for empty lists, and is better than using pair? for this purpose.
Parameter | Description |
---|---|
lst | The list checked |
Example
Example 1: Check if a few lists are empty
> (list-notempty? (list 1))
#t
> (list-notempty? (list))
#f
> (list-notempty? #f)
#f