Handbook
Glossary
null? ( set -- ? )
Factor handbook
»
The language
»
Collections
»
Sets
»
Operations on sets
Prev:
intersect! ( set1 set2 -- set1 )
Next:
diff ( set1 set2 -- set )
Vocabulary
sets
Inputs
set
a
set
Outputs
?
a
boolean
Word description
Tests whether the given set is empty. This outputs
t
when given a null set of any type.
Definition
IN:
sets
GENERIC:
null?
( set -- ? )
Methods
USING:
sequences
sets
;
M:
sequence
null?
empty?
;
inline
USING:
kernel
sets
;
M:
set
null?
cardinality
0
=
;
inline