Files
RustAst/examples/closure.myc
T
Michael Schimmel 0ed52a811d Update benchmark metadata
This commit updates the benchmark metadata in several example files. The
benchmark runs and repeat counts have been slightly adjusted due to
optimizations or minor variations in execution.
2026-02-22 01:37:00 +01:00

13 lines
193 B
Plaintext

;; Closure Scope Test
;; Benchmark: 779ns
;; Benchmark-Repeat: 2613
;; Output: 15
(do
(def make-adder (fn [x]
(fn [y] (+ x y))))
(def add5 (make-adder 5))
(add5 10)
)