Handbook
Glossary
gather ( ... seq quot: ( ... elt -- ... elts ) -- ... newseq )
Vocabulary
sets
Inputs
seq
a
sequence
quot
a
quotation
with stack effect
( ... elt -- ... elts )
Outputs
newseq
a
sequence
Word description
Maps a quotation over a sequence, concatenates the results of the mapping, and removes duplicates.
Definition
USING:
sequences
;
IN:
sets
:
gather
( ... seq quot: ( ... elt -- ... elts ) -- ... newseq )
map
concat
members
;
inline