Handbook
Glossary
collect-index-by ( ... seq quot: ( ... obj -- ... key ) -- ... assoc )
Vocabulary
assocs
.
extras
Inputs
seq
an
object
quot
a
quotation
with stack effect
( ... obj -- ... key )
Outputs
assoc
an
object
Definition
USING:
kernel
;
IN:
assocs.extras
:
collect-index-by
( ... seq quot: ( ... obj -- ... key ) -- ... assoc )
[
H{
}
clone
]
2dip
collect-index-by!
;
inline