9222fb5bc8
The benchmark results in several example files have been updated. This commit reflects slight variations in performance measurements for various test cases, including closure scope, data structures, destructuring, higher-order functions, macros, and tuple operations.
11 lines
191 B
Plaintext
11 lines
191 B
Plaintext
;; Higher-Order Function Example
|
|
;; Benchmark: 680ns
|
|
;; Benchmark-Repeat: 2981
|
|
;; Output: 25
|
|
(do
|
|
(def apply (fn [f x] (f x)))
|
|
(def square (fn [x] (* x x)))
|
|
|
|
(apply square 5)
|
|
)
|