compose ( quot1 quot2 -- compose )
Factor handbook > The language > Combinators > Compositional combinators

Prev:curry ( obj quot -- curry )
Next:2curry ( obj1 obj2 quot -- curry )


Vocabulary
kernel

Inputs and outputs
quot1a callable
quot2a callable
composea compose


Word description
Quotation composition. Outputs a callable which calls quot1 followed by quot2.

Notes
The following two lines are equivalent:
compose call append call

However, compose runs in constant time, and the optimizing compiler is able to compile code which calls composed quotations.

See also
prepose

Definition


Methods