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

Prev:sift-values ( assoc -- assoc' )
Next:harvest-values ( assoc -- assoc' )


Vocabulary
assocs

Inputs
assocan assoc


Outputs
assoc'a new assoc


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

Examples
USING: prettyprint assocs hashtables ; H{ { { 2 } 1 } { { } 3 } } harvest-keys .
H{ { { 2 } 1 } }


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

Definition