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

5 lines
103 B
Racket

(define (foo x)
(define (bar y) (+ x y))
bar)
(foo 1) ; => #<procedure:bar>
((foo 1) 2) ; => 3