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