Fix typo
This commit is contained in:
parent
e8bafbd9b9
commit
f7cc409351
|
@ -226,10 +226,11 @@ the entire list, yielding the malformed expression
|
||||||
@racket['(ul ((li "Larry") (li "Curly") (li
|
@racket['(ul ((li "Larry") (li "Curly") (li
|
||||||
"Moe")))].
|
"Moe")))].
|
||||||
|
|
||||||
Instead, we must splice the list in, like so: @racket[`(ul ,@((li "Larry") (li "Curly") (li
|
Instead, we must splice the list in, like so: @racket[`(ul
|
||||||
"Moe")))]. The @racket[unquote-splicing] form, @racket[,@expression],
|
,@'((li "Larry") (li "Curly") (li "Moe")))]. The
|
||||||
allows us conveniently to splice a list of @|xexpr| fragments into a
|
@racket[unquote-splicing] form, @racket[,@expression], allows us
|
||||||
larger template list. To generalize the example, here are two helper
|
conveniently to splice a list of @|xexpr| fragments into a larger
|
||||||
|
template list. To generalize the example, here are two helper
|
||||||
functions that convert any list of @|xexpr|s into one @|xexpr|
|
functions that convert any list of @|xexpr|s into one @|xexpr|
|
||||||
representing an unordered, itemized HTML list:
|
representing an unordered, itemized HTML list:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user