Pipe Parameter is now a Tuple

This commit is contained in:
Michael Schimmel
2026-01-05 00:13:51 +01:00
parent 242ec9a56e
commit 264314cd93
15 changed files with 322 additions and 1244 deletions
+2 -2
View File
@@ -195,7 +195,7 @@ begin
FEnv.RootScope.Define('src', mockStream, TTypes.CreateRecordSeries(source.Def));
// Act
script := '(pipe [src [:val]] (fn [x] {:res (* x 2)}))';
script := '(pipe [[src [:val]]] (fn [x] {:res (* x 2)}))';
// 1. Compile & Link & Run (Constructs the Pipe Object)
resVal := FEnv.Run(TAstScript.Parse(script));
@@ -253,7 +253,7 @@ begin
FEnv.RootScope.Define('in2', m2, TTypes.CreateRecordSeries(s2.Def));
// Act
script := '(pipe [in1 [:a] in2 [:b]] (fn [valA valB] {:sum (+ valA valB)}))';
script := '(pipe [[in1 [:a]] [in2 [:b]]] (fn [valA valB] {:sum (+ valA valB)}))';
resSeries := FEnv.Run(TAstScript.Parse(script)).AsStream.Series;
+1 -1
View File
@@ -1,5 +1,5 @@
;; EXPECT: <series[0]>
(do
(def btc-ma (pipe [btc [:Close]] (fn [c] (do {:ma c}))))
(def btc-ma (pipe [[btc [:Close]]] (fn [c] (do {:ma c}))))
(.ma btc-ma)
)