RosettaCodeData/Task/Scope-Function-names-and-labels/Racket/scope-function-names-and-labels-1.rkt
2023-07-01 13:44:08 -04:00

5 lines
88 B
Racket

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