This website requires JavaScript.
Cadquos
Explore
Marketplace
Help
Register
Sign In
Cadquos
Development
Main Navigation
🏠
Dashboard
🏢
Organizations
8
📁
Repositories
8
👥
Team
🗓️
Calendar
Workspace
📝
작업메모
🚀
시작하기
📝
빠른 메모
👻
나의 공간
3
📝
작업목록
Settings
Connections
Public Pages
Notifications
3
Help Center
John Smith
john@example.com
ByoungSooPark
/
modeling-app
Watch
1
Star
0
Fork
0
You've already forked modeling-app
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
ccc7ec93b51ee3ce0de1736a9988a5cab58f4c75
modeling-app
/
rust
/
kcl-lib
/
tests
/
kw_fn_too_few_args
/
input.kcl
6 lines
52 B
Plaintext
Raw
Normal View
History
Unescape
Escape
KCL keyword args: calling user-defined functions (#4722) Part of https://github.com/KittyCAD/modeling-app/issues/4600 You can now call a user-defined function via keyword args. E.g. ``` fn increment(@x) { return x + 1 } fn add(@x, delta) { return x + delta } two = increment(1) three = add(1, delta: 2) ```
2024-12-09 22:11:16 -06:00
fn add(x, y) {
return x + y
}
KCL: Keyword fn args like "x = 1" not like "x: 1" (#4770) Aligns with how we're doing objects.
2024-12-12 11:53:35 -06:00
three = add(x = 1)
Reference in New Issue
Copy Permalink