15 lines
215 B
Plaintext
15 lines
215 B
Plaintext
![]() |
---
|
||
|
source: kcl-lib/src/simulation_tests.rs
|
||
|
description: Result of unparsing kw_fn.kcl
|
||
|
---
|
||
|
fn increment(@x) {
|
||
|
return x + 1
|
||
|
}
|
||
|
|
||
|
fn add(@x, delta) {
|
||
|
return x + delta
|
||
|
}
|
||
|
|
||
|
two = increment(1)
|
||
|
three = add(1, delta = 2)
|