loop touchup

pull/21/head
Matthew Butterick 6 years ago
parent 57522a1be9
commit 5c40ca6279

@ -14,12 +14,11 @@
EXPR ...))))) EXPR ...)))))
(define (convert-expr x) (define (convert-expr x)
(let loop ([x x])
(cond (cond
[(list? x) (map loop x)] [(list? x) (map convert-expr x)]
[(number? x) 42] [(number? x) 42]
[(string? x) "whee"] [(string? x) "whee"]
[else 'kaboom]))) [else 'kaboom]))
(define-macro (dsl-module-begin EXPR ...) (define-macro (dsl-module-begin EXPR ...)
#'(#%module-begin #'(#%module-begin

@ -1,12 +1,11 @@
#lang br #lang br
(define (convert-expr x) (define (convert-expr x)
(let loop ([x x])
(cond (cond
[(list? x) (map loop x)] [(list? x) (map convert-expr x)]
[(number? x) 42] [(number? x) 42]
[(string? x) "whee"] [(string? x) "whee"]
[else 'kaboom]))) [else 'kaboom]))
(define-macro (dsl-module-begin EXPR ...) (define-macro (dsl-module-begin EXPR ...)
#'(#%module-begin #'(#%module-begin

Loading…
Cancel
Save