RosettaCodeData/Task/Scope-Function-names-and-labels/Racket/scope-function-names-and-labels-1.rkt
Ingy döt Net 6f050a029e update
2013-06-05 21:47:54 +00:00

5 lines
88 B
Racket

(define (foo x)
(define (bar y) (+ x y))
(bar 2))
(foo 1) ; => 3
(bar 1) ; => error