Handbook
Glossary
collector-as ( quot exemplar -- quot' vec )
Factor handbook
»
The language
»
Collections
»
Sequence operations
»
Implementing sequence combinators
Prev:
collector ( quot -- quot' vec )
Next:
selector ( quot -- selector accum )
Vocabulary
sequences
Inputs
quot
an
object
exemplar
an
object
Outputs
quot'
an
object
vec
an
object
Definition
USING:
kernel
;
IN:
sequences
:
collector-as
( quot exemplar -- quot' vec )
dup
new-resizable-like
[
[
push
]
curry
compose
]
keep
;
inline