The grammar for define includes

   (define id expr)

but I wonder if this couldn't be relaxed to

   (define id body)

so that you could write things like

   (define count
     (define i 0)
     (λ () (begin0 i (set! i (add1 i)))))

David
_________________________________________________
 For list-related administrative tasks:
 http://lists.racket-lang.org/listinfo/users

Reply via email to