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

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