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:
@ -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])
|
||||
|
Reference in New Issue
Block a user