Files
RustAst/examples/record_to_tuple.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
231 B
Plaintext

;; Record to Tuple Mapping Test
;; Output: 30
;; Benchmark: 727ns
;; Benchmark-Repeat: 2764
(do
(def rec {:x 10 :y 20})
;; Map record to tuple pattern
(def add-tuple (fn [[a b]] (+ a b)))
(add-tuple rec)
)