Files
RustAst/examples/hof.myc
T
Michael Schimmel 2cc47c557b Update benchmark results
This commit updates the benchmark results for various examples. The
benchmark times and repeat counts have been adjusted to reflect current
performance characteristics.
2026-02-28 14:27:54 +01:00

11 lines
191 B
Plaintext

;; Higher-Order Function Example
;; Benchmark: 90ns
;; Benchmark-Repeat: 21671
;; Output: 25
(do
(def apply (fn [f x] (f x)))
(def square (fn [x] (* x x)))
(apply square 5)
)