Allow any value to start a pipe expression (#2496)

Relaxes an arbitrary restriction. Previously KCL pipelines couldn't start
with a number, e.g. `2 |> double(%)`. Now they can.
This commit is contained in:
Adam Chalmers
2024-05-23 18:06:30 -05:00
committed by GitHub
parent 56d930c4f2
commit 4be63e7331
2 changed files with 7 additions and 12 deletions

View File

@ -19,4 +19,4 @@ fn cube = (length, center) => {
fn double = (x) => { return x * 2}
fn width = () => { return 200 }
const myCube = cube(width() |> double(%), [0,0])
const myCube = cube(200 |> double(%), [0,0])