Handbook
Glossary
intersect-all ( sets -- set/f )
Factor handbook
»
The language
»
Collections
»
Sets
»
Operations on sets
Prev:
union-all ( sets -- set/f )
Next:
set-like ( set exemplar -- set' )
Vocabulary
sets
Inputs
sets
a
sequence
Outputs
set/f
a
set
or
f
Word description
Outputs the intersection of all the sets of the sequence
sets
, or
f
if
sets
is empty.
Definition
USING:
sequences
;
IN:
sets
:
intersect-all
( sets -- set/f )
[
f
]
[
[
]
[
intersect
]
map-reduce
]
if-empty
;