Skip to content
Matthias Görges edited this page Jun 19, 2016 · 1 revision

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
Clone this wiki locally