empty?
tests whether the provided forms are empty sequences
Usage:
(empty? form+) (!empty? form+)
If all forms evaluate to empty sequences, then this function will return #t (true). The first evaluation that is not an empty sequence will result in the function returning #f (false).
An Example
(empty? '(1 2 3 4) [] {})
This example will return #f (false) because the first form is a list with four elements.
Like most predicates, this function can also be negated by prepending the !
character. This means that all the provided forms must not be nil.
(!empty? '(1) [2] "3" {4 5})
This example will return #t (true) because all the arguments are non-empty sequences of some kind.