Is this an empty set or word?

emptyp expression
empty? expression

Returns true if the result of expression is an empty set or an empty word, otherwise returns false.

Example:

make "l [a b]
(print :l count :l empty? :l)
make "l bf bl :l
(print :l count :l empty? :l)

make "s "ab
(print :s count :s empty? :s)
make "s bf bl :s
(print :s count :s empty? :s)

Output:

[a b] 2 False
[] 0 True
ab 2 False
 0 True

See also:

Data types

Table of Content