call ( callable -- ) (original) (raw)
Vocabulary
kernel
Inputs
callable | a callable |
---|
Outputs
None
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.
Notes
To call a non-literal quotation you can use call( to check the stack effect before calling at runtime.
Examples
The following two lines are equivalent:
2 [ 2 + 3 * ] call 2 2 + 3 *
See also
call(
Definition
Methods
USING: kernel quotations.private ;
M: composed call uncompose [ call ] dip call ;
USING: kernel quotations.private ;
M: curried call uncurry call ;