harvest-values ( assoc -- assoc' )
Factor handbook » The language » Collections » Associative mapping operations » Associative mapping combinators

Prev:harvest-keys ( assoc -- assoc' )
Next:map>assoc ( ... seq quot: ( ... elt -- ... key value ) exemplar -- ... assoc )


Vocabulary
assocs

Inputs
assocan assoc


Outputs
assoc'a new assoc


Word description
Outputs an assoc removing values that are empty sequences.

Examples
USING: prettyprint assocs hashtables ; H{ { 1 { } } { 3 { 4 } } } harvest-values .
H{ { 3 { 4 } } }


See also
sift-keys, sift-values, harvest-keys

Definition