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

7 lines
100 B
Plaintext
Raw Permalink Normal View History

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