mbutterick / pollen-tfl

Commented Pollen sample project [mirror of https://git.matthewbutterick.com/mbutterick/pollen-tfl]
https://git.matthewbutterick.com/mbutterick/pollen-tfl
66 stars 8 forks source link

lambda-less make-list-function sample has incorrectly placed parens #3

Closed kisaragi-hiu closed 6 years ago

kisaragi-hiu commented 6 years ago

https://github.com/mbutterick/pollen-tfl/blob/master/scribblings/pollen-rkt.scrbl#L443

This has no expression after the initial nested define.

(define (make-list-function tag [attrs empty])
  (define (listifier . args)
    (list* tag attrs (detect-list-items args))
    listifier))

This is the currect version.

(define (make-list-function tag [attrs empty])
  (define (listifier . args)
    (list* tag attrs (detect-list-items args)))
  listifier)
mbutterick commented 6 years ago

Thanks!