Handbook
Glossary
collect-assoc-by-multi! ( ... assoc input-assoc quot: ( ... key value -- ... new-keys value' ) -- ... assoc )
Vocabulary
assocs
.
extras
Inputs
assoc
an
object
input-assoc
an
object
quot
a
quotation
with stack effect
( ... key value -- ... new-keys value' )
Outputs
assoc
an
object
Definition
USING:
assocs
kernel
;
IN:
assocs.extras
:
collect-assoc-by-multi!
( ... assoc input-assoc quot: ( ... key value -- ... new-keys value' ) -- ... assoc )
rot
[
[
[
swap
]
compose
]
dip
[
push-at-each
]
curry
compose
assoc-each
]
keep
;
inline