Handbook
Glossary
assoc-union-all ( seq -- union )
Factor handbook
»
The language
»
Collections
»
Associative mapping operations
»
Associative mapping conversions
Prev:
assoc-clone-like ( assoc exemplar -- newassoc )
Next:
zip ( keys values -- alist )
Vocabulary
assocs
Inputs
seq
a sequence of assocs
Outputs
union
an
assoc
Word description
Takes the union of all of the
assocs
in
seq
.
Examples
USING: prettyprint assocs ; { H{ { 1 2 } } H{ { 3 4 } } } assoc-union-all .
H{ { 1 2 } { 3 4 } }
Definition
USING:
kernel
sequences
;
IN:
assocs
:
assoc-union-all
( seq -- union )
H{
}
clone
[
assoc-union!
]
reduce
;