Files
RustAst/examples/closure.myc
T
Michael Schimmel c03b2af770 Update benchmark numbers in examples
This commit updates the benchmark numbers in various example files. The
changes reflect recent performance optimizations or adjustments to the
benchmarking environment.
2026-02-22 16:13:11 +01:00

13 lines
193 B
Plaintext

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