Files
modeling-app/rust/kcl-lib/tests/pipe_as_arg/input.kcl

13 lines
165 B
Plaintext
Raw Normal View History

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