Fix paren (closes #3)

master
Matthew Butterick 6 years ago committed by GitHub
parent 0271331d12
commit 8edff5b45b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -442,9 +442,9 @@ One way to write this function is like so:
@racketblock[ @racketblock[
(define (make-list-function tag [attrs empty]) (define (make-list-function tag [attrs empty])
(define (listifier . args) (define (listifier . args)
(list* tag attrs (detect-list-items args)) (list* tag attrs (detect-list-items args)))
listifier))] listifier)]
That is, explicitly define a new function called @racket[listifier] and then return that function. That's the best way to do it in many programming languages. That is, explicitly define a new function called @racket[listifier] and then return that function. That's the best way to do it in many programming languages.
@ -978,4 +978,4 @@ This last incantation is needed so this @racketmodname[scribble/lp2] document kn
<fix-em-dashes> <fix-em-dashes>
<capitalize-first-letter> <capitalize-first-letter>
<misc-functions> <misc-functions>
] ]