Handbook
Glossary
sift-values ( assoc -- assoc' )
Factor handbook
»
The language
»
Collections
»
Associative mapping operations
»
Associative mapping combinators
Prev:
sift-keys ( assoc -- assoc' )
Next:
harvest-keys ( assoc -- assoc' )
Vocabulary
assocs
Inputs
assoc
an
assoc
Outputs
assoc'
a new assoc
Word description
Outputs an assoc removing values that are
f
.
Examples
USING: prettyprint assocs hashtables ; H{ { 1 f } { 3 4 } } sift-values .
H{ { 3 4 } }
See also
sift-keys
,
harvest-keys
,
harvest-values
Definition
USING:
kernel
;
IN:
assocs
:
sift-values
( assoc -- assoc' )
[
nip
]
assoc-filter
;
inline