Next: @print{}
(-|): Indicating Generated Output, Previous: @result{}
(⇒): Result of an Expression, Up: Glyphs for Programming [Contents][Index]
@expansion{}
(→): Indicating an ExpansionWhen an expression is a macro call, it expands into a new expression.
You can indicate the result of the expansion with the
@expansion{}
command.
The @expansion{}
command is displayed as
‘→’, either a long arrow with a flat base or (when
that is not available) the ASCII sequence ‘==>’.
For example, the following
@lisp (third '(a b c)) @expansion{} (car (cdr (cdr '(a b c)))) @result{} c @end lisp
produces
(third '(a b c)) → (car (cdr (cdr '(a b c)))) ⇒ c
which may be read as:
(third '(a b c))
expands to(car (cdr (cdr '(a b c))))
; the result of evaluating the expression isc
.
Often, as in this case, an example looks better if the
@expansion{}
and @result{}
commands are indented.