assoc-reject! ( ... assoc quot: ( ... key value -- ... ? ) -- ... assoc )
Factor handbook » The language » Collections » Associative mapping operations » Associative mapping combinators

Prev:assoc-filter! ( ... assoc quot: ( ... key value -- ... ? ) -- ... assoc )
Next:cache ( ... key assoc quot: ( ... key -- ... value ) -- ... value )


Vocabulary
assocs

Inputs
assocan assoc
quota quotation with stack effect ( ... key value -- ... ? )


Outputs
assocan assoc


Word description
Removes all entries for which the predicate quotation yields false.

Side effects
Modifies assoc

See also
assoc-reject, assoc-reject-as

Definition


: assoc-reject!
( ... assoc quot: ( ... key value -- ... ? ) -- ... assoc )
[ not ] compose assoc-filter! ; inline