Files
RustAst/examples/pipeline.myc
T
Michael Schimmel 86a6db28d8 Update pipeline.myc
2026-03-02 00:32:15 +01:00

25 lines
389 B
Plaintext

;; Benchmark: 2.0us
;; Benchmark-Repeat: 1015
;; Output: PipelineNode[last: Some(110.45243843391206)]
(do
(def src1 (create-random-ohlc 42 3))
(def combined
(pipe [src1]
(fn [t1]
(.close t1)
)
)
)
(def my_indicator
(pipe [combined]
(fn [close_price]
(+ close_price 10.0)
)
)
)
my_indicator
)