collect-index-by! ( ... assoc seq quot: ( ... obj -- ... key ) -- ... assoc )


Vocabulary
assocs.extras

Inputs
assocan object
seqan object
quota quotation with stack effect ( ... obj -- ... key )


Outputs
assocan object


Definition


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