literalize ( obj -- wrapped )
Factor handbook > The language > Collections > Quotations > Wrappers

Prev:wrapper


Vocabulary
quotations

Inputs and outputs
objan object
wrappedan object


Word description
Outputs an object which evaluates to obj when placed in a quotation. If obj is not self-evaluating (for example, it is a word), then it will be wrapped.

Examples
USING: prettyprint quotations ; 5 literalize .
5

USING: math prettyprint quotations sequences ; [ + ] [ literalize ] map .
[ \ + ]


See also
<wrapper>, \, W{

Definition

GENERIC: literalize ( obj -- wrapped )


Methods