call ( callable -- )
Factor documentation > Factor handbook > The language > Combinators > Fundamental combinators
Next:execute ( word -- )


Vocabulary
kernel

Inputs and outputs
callablea callable


Word description
Calls a quotation. Words which call an input parameter must be declared inline so that a caller which passes in a literal quotation can have a static stack effect.

Examples
The following two lines are equivalent:
2 [ 2 + 3 * ] call 2 2 + 3 *


See also
call(

Definition
IN: kernel

GENERIC: call ( callable -- )


Methods
USING: kernel quotations.private ;

M: compose call uncompose [ call ] dip call ;


USING: kernel quotations.private ;

M: curry call uncurry call ;


USING: kernel kernel.private quotations ;

M: quotation call (call) ;