Files
modeling-app/src/wasm-lib/kcl/tests/kw_fn_with_defaults/input.kcl

7 lines
99 B
Plaintext
Raw Normal View History

fn increment(@x, by? = 1) {
return x + by
}
two = increment(1)
twentyOne = increment(1, by: 20)