Implementing sequence combinators
Factor handbook » The language » Collections » Sequence operations

Prev:Unsafe sequence operations


Creating a new sequence unconditionally:
collector ( quot -- quot' vec )

collector-as ( quot exemplar -- quot' vec )


Creating a new sequence conditionally:
selector ( quot -- selector accum )

selector-as ( quot exemplar -- selector accum )

2selector ( quot -- selector accum1 accum2 )