collect-assoc-by! ( ... assoc input-assoc quot: ( ... key value -- ... key' value' ) -- ... assoc )


Vocabulary
assocs.extras

Inputs
assocan object
input-assocan object
quota quotation with stack effect ( ... key value -- ... key' value' )


Outputs
assocan object


Definition


: collect-assoc-by!
( ... assoc input-assoc quot: ( ... key value -- ... key' value' ) -- ... assoc )
rot [
[ [ swap ] compose ] dip [ push-at ] curry compose
assoc-each
] keep ; inline